From: vsv Date: Thu, 18 Jun 2020 09:27:51 +0000 (+0300) Subject: Support wide string for color scale title X-Git-Tag: V9_6_0a1~60^2~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=085ba8117d0a4953e5ffc315432df41c12f4f246;p=modules%2Fshaper.git Support wide string for color scale title --- diff --git a/src/XGUI/XGUI_ViewerProxy.cpp b/src/XGUI/XGUI_ViewerProxy.cpp index aac07b597..c0fb508eb 100644 --- a/src/XGUI/XGUI_ViewerProxy.cpp +++ b/src/XGUI/XGUI_ViewerProxy.cpp @@ -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 }