Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F572
4877.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
goch
Nov 17 2010, 1:49 PM
2010-11-17 13:49:57 (UTC+1)
Size
1 KB
Referenced Files
None
Subscribers
None
4877.patch
View Options
Index: QmitkLevelWindowWidgetContextMenu.cpp
===================================================================
--- QmitkLevelWindowWidgetContextMenu.cpp (revision 27702)
+++ QmitkLevelWindowWidgetContextMenu.cpp (working copy)
@@ -203,7 +203,9 @@
if (node->IsVisible(NULL) == false)
continue;
mitk::LevelWindowProperty::Pointer levelWindowProperty = dynamic_cast<mitk::LevelWindowProperty*>(node->GetProperty("levelwindow"));
- if (levelWindowProperty.IsNotNull())
+ bool isHelperObject = false;
+ node->GetBoolProperty("helper object", isHelperObject);
+ if (levelWindowProperty.IsNotNull() && !isHelperObject)
{
std::string name;
node->GetName(name);
@@ -281,7 +283,9 @@
if (node)
{
mitk::LevelWindowProperty::Pointer levelWindowProperty = dynamic_cast<mitk::LevelWindowProperty*>(node->GetProperty("levelwindow"));
- if (levelWindowProperty.IsNotNull())
+ bool isHelperObject = false;
+ node->GetBoolProperty("helper object", isHelperObject);
+ if (levelWindowProperty.IsNotNull() && !isHelperObject)
{
std::string name;
node->GetName(name);
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
549
Default Alt Text
4877.patch (1 KB)
Attached To
Mode
T4877: QmitkLevelWindowWidget should not display helper objects in context menu "images"
Attached
Detach File
Event Timeline
•
goch
added a comment.
Nov 17 2010, 1:49 PM
2010-11-17 13:49:57 (UTC+1)
Comment Actions
Add check for helper object
Log In to Comment