Page MenuHomePhabricator

patch.txt

Authored By
wangx
Nov 18 2010, 4:30 PM
Size
624 B
Referenced Files
None
Subscribers
None

patch.txt

Index: mitkImageMapperGL2D.cpp
===================================================================
--- mitkImageMapperGL2D.cpp (revision 27708)
+++ mitkImageMapperGL2D.cpp (working copy)
@@ -237,7 +237,10 @@
// create text
std::stringstream volumeString;
- volumeString << std::fixed << std::setprecision(1) << segmentationVolume;
+ int precision = 1;
+ if (segmentationVolume < 0.1)
+ precision = 4;
+ volumeString << std::fixed << std::setprecision(precision) << segmentationVolume;
std::string unit;
if (node->GetStringProperty("volume annotation unit", unit))

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
613
Default Alt Text
patch.txt (624 B)

Event Timeline

Set precision of the volume string to 4 for small segmentation volume