From: vsv Date: Thu, 18 Jun 2020 09:27:51 +0000 (+0300) Subject: Support wide string for color scale title X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0015ff01aebe57ad5415fe409fedd22e4341acf9;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 }