From: malaterre Date: Tue, 25 Oct 2005 17:54:55 +0000 (+0000) Subject: BUG: Ok someone messed up with the code... and I give up, fix your own bug X-Git-Tag: OpenJPEG.Version1.2~166 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=09cac5ad53084295cb473333fb10681b1ebf0286;p=gdcm.git BUG: Ok someone messed up with the code... and I give up, fix your own bug --- diff --git a/src/gdcmPixelReadConvert.cxx b/src/gdcmPixelReadConvert.cxx index e700fba1..3c26ad67 100644 --- a/src/gdcmPixelReadConvert.cxx +++ b/src/gdcmPixelReadConvert.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelReadConvert.cxx,v $ Language: C++ - Date: $Date: 2005/10/23 17:51:43 $ - Version: $Revision: 1.86 $ + Date: $Date: 2005/10/25 17:54:55 $ + Version: $Revision: 1.87 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -115,6 +115,8 @@ void PixelReadConvert::GrabInformationsFromFile( File *file ) PixelSign = file->IsSignedPixelData(); SwapCode = file->GetSwapCode(); std::string ts = file->GetTransferSyntax(); + if ( ts == GDCM_UNKNOWN ) + gdcmErrorMacro( "Could someone tell me how in the world could this happen !" ); IsRaw = ( ! file->IsDicomV3() ) || Global::GetTS()->GetSpecialTransferSyntax(ts) == TS::ImplicitVRLittleEndian