From dc7c62abeb81f3420d91bd6141b49fb55e8672a9 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com> Date: Thu, 5 Nov 2015 15:54:36 -0500 Subject: [PATCH] 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. --- Common/Core/vtkVariant.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Core/vtkVariant.cxx b/Common/Core/vtkVariant.cxx index b6bcbe9cbd..33a9088ff9 100644 --- a/Common/Core/vtkVariant.cxx +++ b/Common/Core/vtkVariant.cxx @@ -1089,7 +1089,7 @@ ostream& operator << ( ostream& os, const vtkVariant& val ) case VTK_OBJECT: if ( val.Data.VTKObject ) { - os << "(" << val.Data.VTKObject->GetClassName() << ")" << hex << val.Data.VTKObject; + os << "(" << val.Data.VTKObject->GetClassName() << ")" << hex << val.Data.VTKObject << dec; } else { -- GitLab