Index: mitkDataStorage.cpp =================================================================== --- mitkDataStorage.cpp (revision 21081) +++ mitkDataStorage.cpp (working copy) @@ -149,11 +149,9 @@ { if (set == NULL) return NULL; - if (condition == NULL) - return set; mitk::DataStorage::SetOfObjects::Pointer result = mitk::DataStorage::SetOfObjects::New(); for (mitk::DataStorage::SetOfObjects::ConstIterator it = set->Begin(); it != set->End(); it++) - if (condition->CheckNode(it.Value()) == true) + if (condition == NULL || condition->CheckNode(it.Value()) == true) result->InsertElement(result->Size(), it.Value()); return mitk::DataStorage::SetOfObjects::ConstPointer(result); } @@ -334,7 +332,7 @@ } catch(itk::ExceptionObject e) { - MITK_ERROR << e << std::endl; + LOG_ERROR << e << std::endl; } } }