From: sln Date: Fri, 17 Dec 2010 13:46:05 +0000 (+0000) Subject: Correction of titles update X-Git-Tag: DIAGRAM_0_1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8cc823fbe5fbe2cefac12f3901e7b72af6a79c7b;p=modules%2Fgui.git Correction of titles update --- diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 59368cb1f..c1960131d 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -2263,9 +2263,14 @@ void Plot2d_ViewFrame::updateTitles() if ( !yTitle.isEmpty() && !yUnits.isEmpty() ) yTitle += " "; - setTitle( myXTitleEnabled, xTitle + xUnits, XTitle, true ); - setTitle( myYTitleEnabled, yTitle + yUnits, YTitle, true ); - setTitle( true, aTables.join("; "), MainTitle, true ); + if ( getAutoUpdateTitle( XTitle ) ) + setTitle( myXTitleEnabled, xTitle + xUnits, XTitle, true ); + + if ( getAutoUpdateTitle( YTitle ) ) + setTitle( myYTitleEnabled, yTitle + yUnits, YTitle, true ); + + if ( getAutoUpdateTitle( MainTitle ) ) + setTitle( true, aTables.join("; "), MainTitle, true ); } /*!