]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Support wide string for color scale title
authorvsv <vsv@opencascade.com>
Thu, 18 Jun 2020 09:27:51 +0000 (12:27 +0300)
committervsv <vsv@opencascade.com>
Fri, 26 Jun 2020 13:33:59 +0000 (16:33 +0300)
src/XGUI/XGUI_ViewerProxy.cpp

index aac07b5975c7939a15079d688df2e4610499a50c..c0fb508ebe0770e7376b2208fd56ed3165f41beb 100644 (file)
@@ -683,7 +683,7 @@ void XGUI_ViewerProxy::setColorScaleTitle(const QString& theText)
   myWorkshop->salomeConnector()->viewer()->setColorScaleTitle(theText);
 #else
   Handle(AIS_ColorScale) aColorScale = myWorkshop->mainWindow()->viewer()->colorScale();
-  aColorScale->SetTitle(theText.toStdString().c_str());
+  aColorScale->SetTitle(theText.toStdWString().c_str());
 #endif
 }