Skip to content

Commit 37d8162

Browse files
author
pinter
committed
BUG: Fixed read float MRML attribute macro
git-svn-id: http://svn.slicer.org/Slicer4/trunk@26937 3bd1e089-480b-0410-8dfb-8563597acbee
1 parent 3ca03ab commit 37d8162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libs/MRML/Core/vtkMRMLNodePropertyMacros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
{ \
178178
vtkVariant variantValue(xmlReadAttValue); \
179179
bool valid = false; \
180-
int scalarValue = variantValue.ToFloat(&valid); \
180+
double scalarValue = variantValue.ToDouble(&valid); \
181181
if (valid) \
182182
{ \
183183
this->Set##propertyName(scalarValue); \

0 commit comments

Comments
 (0)