Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F487
bug3426.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
xplanes
Mar 12 2010, 12:11 PM
2010-03-12 12:11:20 (UTC+1)
Size
919 B
Referenced Files
None
Subscribers
None
bug3426.diff
View Options
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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
466
Default Alt Text
bug3426.diff (919 B)
Attached To
Mode
T3426: dataStorage->Remove( mitk::DataStorage::SetOfObjects* ) is not working
Attached
Detach File
Event Timeline
xplanes
added a comment.
Mar 12 2010, 12:11 PM
2010-03-12 12:11:20 (UTC+1)
Comment Actions
Unified patch
Log In to Comment