comparison OrthancServer/FromDcmtkBridge.cpp @ 419:ab070786f478

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 May 2013 13:45:02 +0200
parents 4d5f0857ec9c
children 9d830dcc7730
comparison
equal deleted inserted replaced
418:b79bf2f4ab2e 419:ab070786f478
1238 if (privateContent.size() > 0) 1238 if (privateContent.size() > 0)
1239 pixData = reinterpret_cast<Uint8*>(&privateContent[0]); 1239 pixData = reinterpret_cast<Uint8*>(&privateContent[0]);
1240 accessor.reset(new DicomIntegerPixelAccessor(m, pixData, privateContent.size())); 1240 accessor.reset(new DicomIntegerPixelAccessor(m, pixData, privateContent.size()));
1241 accessor->SetCurrentFrame(frame); 1241 accessor->SetCurrentFrame(frame);
1242 } 1242 }
1243
1244 if (accessor.get() == NULL)
1245 {
1246 throw OrthancException(ErrorCode_BadFileFormat);
1247 }
1243 1248
1244 PixelFormat format; 1249 PixelFormat format;
1245 bool supported = false; 1250 bool supported = false;
1246 1251
1247 if (accessor->GetChannelCount() == 1) 1252 if (accessor->GetChannelCount() == 1)