From 8cc823fbe5fbe2cefac12f3901e7b72af6a79c7b Mon Sep 17 00:00:00 2001 From: sln Date: Fri, 17 Dec 2010 13:46:05 +0000 Subject: [PATCH] Correction of titles update --- src/Plot2d/Plot2d_ViewFrame.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 ); } /*! -- 2.39.2