Skip to content

Commit fe92273

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 8e43f69 commit fe92273

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
@@ -1207,7 +1207,7 @@ ostream& operator << ( ostream& os, const vtkVariant& val )
12071207
case VTK_OBJECT:
12081208
if ( val.Data.VTKObject )
12091209
{
1210-
os << "(" << val.Data.VTKObject->GetClassName() << ")" << hex << val.Data.VTKObject;
1210+
os << "(" << val.Data.VTKObject->GetClassName() << ")" << hex << val.Data.VTKObject << dec;
12111211
}
12121212
else
12131213
{

0 commit comments

Comments
 (0)