From: san Date: Mon, 5 Dec 2011 15:30:33 +0000 (+0000) Subject: POSEIDONGUI issue #31415: API to hide widgets for title editing, not to confuse the... X-Git-Tag: V5_1_20~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f600d2aef59784cf426ef51991b8983a89a4f752;p=modules%2Fgui.git POSEIDONGUI issue #31415: API to hide widgets for title editing, not to confuse the users with the titles that can be edited but are not saved to resource manager. --- diff --git a/src/Plot2d/Plot2d_SetupViewDlg.cxx b/src/Plot2d/Plot2d_SetupViewDlg.cxx index 0402410f3..badc6a333 100755 --- a/src/Plot2d/Plot2d_SetupViewDlg.cxx +++ b/src/Plot2d/Plot2d_SetupViewDlg.cxx @@ -582,8 +582,10 @@ bool Plot2d_SetupViewDlg::isYTitleEditable() */ void Plot2d_SetupViewDlg::setY2TitleEditable( bool editable ) { - myTitleY2Check->setVisible( editable ); - myTitleY2Edit->setVisible( editable ); + if ( mySecondAxisY ) { + myTitleY2Check->setVisible( editable ); + myTitleY2Edit->setVisible( editable ); + } } /*! @@ -593,7 +595,7 @@ void Plot2d_SetupViewDlg::setY2TitleEditable( bool editable ) */ bool Plot2d_SetupViewDlg::isY2TitleEditable() { - return myTitleY2Edit->isVisible(); + return mySecondAxisY && myTitleY2Edit->isVisible(); } /*!