Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1279
bug-19360-line-width.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
maleike
Oct 7 2015, 4:10 PM
2015-10-07 16:10:38 (UTC+2)
Size
766 B
Referenced Files
None
Subscribers
None
bug-19360-line-width.txt
View Options
diff --git a/Modules/Core/src/Rendering/mitkSurfaceVtkMapper2D.cpp b/Modules/Core/src/Rendering/mitkSurfaceVtkMapper2D.cpp
index 0cbf30d..32bbfbb 100644
--- a/Modules/Core/src/Rendering/mitkSurfaceVtkMapper2D.cpp
+++ b/Modules/Core/src/Rendering/mitkSurfaceVtkMapper2D.cpp
@@ -269,6 +269,14 @@ void mitk::SurfaceVtkMapper2D::ApplyAllProperties(mitk::BaseRenderer* renderer)
float lineWidth = 1.0f;
node->GetFloatProperty("line width", lineWidth, renderer);
+ if ( !node->GetFloatProperty("line width", lineWidth, renderer) )
+ {
+ int oldLineWidth = lineWidth;
+ if ( node->GetIntProperty("line width", oldLineWidth, renderer) )
+ {
+ lineWidth = oldLineWidth;
+ }
+ }
LocalStorage* localStorage = m_LSH.GetLocalStorage(renderer);
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1238
Default Alt Text
bug-19360-line-width.txt (766 B)
Attached To
Mode
T19360: Compatibility with old scene files broken (Surface line width redefined from int to float)
Attached
Detach File
Event Timeline
maleike
added a comment.
Oct 7 2015, 4:10 PM
2015-10-07 16:10:38 (UTC+2)
Comment Actions
Straight forward patch
Log In to Comment