From: adv Date: Wed, 27 Feb 2013 06:57:38 +0000 (+0000) Subject: If operation to switching of scaling mode to Logarithmic is not confirmed by user... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c750957ebb0558b1b610e57708701e40cc169a11;p=modules%2Fgui.git If operation to switching of scaling mode to Logarithmic is not confirmed by user then it is necessary to update the buttons state. --- 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(); }