From f600d2aef59784cf426ef51991b8983a89a4f752 Mon Sep 17 00:00:00 2001 From: san Date: Mon, 5 Dec 2011 15:30:33 +0000 Subject: [PATCH] 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. --- src/Plot2d/Plot2d_SetupViewDlg.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); } /*! -- 2.39.2