From 35d409865125597c827852964dc3d2fe7c49602b Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 8 Oct 2008 06:32:17 +0000 Subject: [PATCH] QT4 porting: logarithmic scale is not taken from preferences --- src/Plot2d/Plot2d_ViewFrame.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index c963ca5d1..d234801fb 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -190,8 +190,6 @@ Plot2d_ViewFrame::Plot2d_ViewFrame( QWidget* parent, const QString& title ) if (mySecondY) setTitle( myY2TitleEnabled, myY2Title, Y2Title, false ); - setHorScaleMode( myXMode, false ); - setVerScaleMode( myYMode, false ); setBackgroundColor( myBackground ); setLegendPos( myLegendPos ); showLegend( myShowLegend, false ); @@ -374,11 +372,13 @@ void Plot2d_ViewFrame::readPreferences() if ( mySecondY ) myY2GridMaxMinor = resMgr->integerValue( "Plot2d", "VerMinorGridMax", myY2GridMaxMinor ); - myXMode = resMgr->integerValue( "Plot2d", "HorScaleMode", myXMode ); - myXMode = qMax( 0, qMin( 1, myXMode ) ); + int newXMode = resMgr->integerValue( "Plot2d", "HorScaleMode", myXMode ); + newXMode = qMax( 0, qMin( 1, newXMode ) ); + setHorScaleMode( newXMode, false ); - myYMode = resMgr->integerValue( "Plot2d", "VerScaleMode", myYMode ); - myYMode = qMax( 0, qMin( 1, myYMode ) ); + int newYMode = resMgr->integerValue( "Plot2d", "VerScaleMode", myYMode ); + newYMode = qMax( 0, qMin( 1, newYMode ) ); + setVerScaleMode( newYMode, false ); } /*! -- 2.39.2