]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correction of titles update
authorsln <sln@opencascade.com>
Fri, 17 Dec 2010 13:46:05 +0000 (13:46 +0000)
committersln <sln@opencascade.com>
Fri, 17 Dec 2010 13:46:05 +0000 (13:46 +0000)
src/Plot2d/Plot2d_ViewFrame.cxx

index 59368cb1f61fb862acd425bc4c6761660645eab2..c1960131d78a907af74dc0efe6384acf1b847e0a 100755 (executable)
@@ -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 );
 }
 
 /*!