Page MenuHomePhabricator

bug3426.diff

Authored By
xplanes
Mar 12 2010, 12:11 PM
Size
919 B
Referenced Files
None
Subscribers
None

bug3426.diff

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;
}
}
}

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
466
Default Alt Text
bug3426.diff (919 B)