X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fgdcm.i;h=2678d19f159ae31e03271fa10282f512dfb5fef9;hb=74e3bc05fade5a18f193e7d1122c74756c0e689e;hp=8b897682b924e08515f8813ce2f337a3b52d19fd;hpb=8afcac16f1406492a512a14845b6234bc9fee5ed;p=gdcm.git diff --git a/gdcmPython/gdcm.i b/gdcmPython/gdcm.i index 8b897682..2678d19f 100644 --- a/gdcmPython/gdcm.i +++ b/gdcmPython/gdcm.i @@ -1,6 +1,7 @@ %module gdcm %{ #include "gdcmCommon.h" +#include "gdcmBase.h" #include "gdcmDict.h" #include "gdcmDictEntry.h" #include "gdcmDictSet.h" @@ -140,8 +141,8 @@ using namespace gdcm; NewKey = PyString_FromString(RawName.c_str()); // Element values are striped from leading/trailing spaces - if (gdcm::ValEntry* ValEntryPtr = - dynamic_cast< gdcm::ValEntry* >(tag->second) ) + gdcm::ValEntry* ValEntryPtr = dynamic_cast< gdcm::ValEntry* >(tag->second); + if ( ValEntryPtr ) { RawValue = ValEntryPtr->GetValue(); } @@ -273,6 +274,7 @@ using namespace gdcm; //////////////////////////////////////////////////////////////////////////// // Warning: Order matters ! %include "gdcmCommon.h" +%include "gdcmBase.h" %include "gdcmDictEntry.h" %include "gdcmDict.h" %include "gdcmDocEntrySet.h"