From 5065b75565b4294c5717745de07b64c5144d9cb6 Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 25 Jan 2011 12:05:44 +0000 Subject: [PATCH] DIAGRAM 0000223: axes titles are wrong after clone Plot2D scene --- src/Plot2d/Plot2d_ViewFrame.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index c1960131d..2b3bfb13b 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -2207,6 +2207,14 @@ void Plot2d_ViewFrame::copyPreferences( Plot2d_ViewFrame* vf ) myXMode = vf->myXMode; myYMode = vf->myYMode; mySecondY = vf->mySecondY; + + // special fields for automatic update of viewer titles + myTitleAutoUpdate = vf->myTitleAutoUpdate; + myXTitleAutoUpdate = vf->myXTitleAutoUpdate; + myYTitleAutoUpdate = vf->myYTitleAutoUpdate; + myTitleChangedByUser = vf->myTitleChangedByUser; + myXTitleChangedByUser = vf->myXTitleChangedByUser; + myYTitleChangedByUser = vf->myYTitleChangedByUser; } /*! @@ -2265,12 +2273,18 @@ void Plot2d_ViewFrame::updateTitles() if ( getAutoUpdateTitle( XTitle ) ) setTitle( myXTitleEnabled, xTitle + xUnits, XTitle, true ); + else + setTitle( myXTitleEnabled, myXTitle, XTitle, true ); if ( getAutoUpdateTitle( YTitle ) ) setTitle( myYTitleEnabled, yTitle + yUnits, YTitle, true ); + else + setTitle( myYTitleEnabled, myYTitle, YTitle, true ); if ( getAutoUpdateTitle( MainTitle ) ) setTitle( true, aTables.join("; "), MainTitle, true ); + else + setTitle( true, myTitle, MainTitle, true ); } /*! -- 2.39.2