diff --git a/lib/src/dicomRoutines.cpp b/lib/src/dicomRoutines.cpp index 3c64f62..d30adf7 100644 --- a/lib/src/dicomRoutines.cpp +++ b/lib/src/dicomRoutines.cpp @@ -65,7 +65,7 @@ vtkSmartPointer VTKDicomRoutines::loadDicomImage( const std::strin rawVolumeData->DeepCopy(reader->GetOutput()); // check if load was successful - if( checkDataLoaded(rawVolumeData) ) + if( !checkDataLoaded(rawVolumeData) ) { cerr << "No DICOM data in directory" << endl; return NULL;