From c750957ebb0558b1b610e57708701e40cc169a11 Mon Sep 17 00:00:00 2001 From: adv Date: Wed, 27 Feb 2013 06:57:38 +0000 Subject: [PATCH] If operation to switching of scaling mode to Logarithmic is not confirmed by user then it is necessary to update the buttons state. --- src/Plot2d/Plot2d_ViewFrame.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index c5a043771..9fd8d5212 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -1539,7 +1539,10 @@ void Plot2d_ViewFrame::setHorScaleMode( const int mode, bool update ) tr( "QUESTION_XLOG_NOT_ALLOWED" ), SUIT_MessageBox::Yes | SUIT_MessageBox::No ); if( answer == SUIT_MessageBox::No ) + { + emit vpModeHorChanged(); return; + } doXLogEnabled(); } @@ -1568,7 +1571,10 @@ void Plot2d_ViewFrame::setVerScaleMode( const int mode, bool update ) tr( "QUESTION_YLOG_NOT_ALLOWED" ), SUIT_MessageBox::Yes | SUIT_MessageBox::No ); if( answer == SUIT_MessageBox::No ) + { + emit vpModeVerChanged(); return; + } doYLogEnabled(); } -- 2.39.2