Skip to content

Commit dc7c62a

Browse files
committed
Ensure vtkVariant stream associated with << operator is set back to "dec".
This commit will ensure that the "base" of stream used to output vtkVariant storing VTK object is restored to "dec". Otherwise, any integer streamed afterward would be displayed in hexadecimal base.
1 parent 93ec100 commit dc7c62a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/Core/vtkVariant.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ ostream& operator << ( ostream& os, const vtkVariant& val )
10891089
case VTK_OBJECT:
10901090
if ( val.Data.VTKObject )
10911091
{
1092-
os << "(" << val.Data.VTKObject->GetClassName() << ")" << hex << val.Data.VTKObject;
1092+
os << "(" << val.Data.VTKObject->GetClassName() << ")" << hex << val.Data.VTKObject << dec;
10931093
}
10941094
else
10951095
{

0 commit comments

Comments
 (0)