From 0015ff01aebe57ad5415fe409fedd22e4341acf9 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 18 Jun 2020 12:27:51 +0300 Subject: [PATCH] Support wide string for color scale title --- src/XGUI/XGUI_ViewerProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.2