From cf237d5de54c428cdbb07667987e92caedb8099c Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 25 Jul 2014 16:41:29 +0400 Subject: [PATCH] 0002238: crash when Fit range in 2D mode --- src/Plot3d/Plot3d_FitDataDlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plot3d/Plot3d_FitDataDlg.cxx b/src/Plot3d/Plot3d_FitDataDlg.cxx index db91fbf56..2634d67f2 100644 --- a/src/Plot3d/Plot3d_FitDataDlg.cxx +++ b/src/Plot3d/Plot3d_FitDataDlg.cxx @@ -155,7 +155,8 @@ void Plot3d_FitDataDlg::setAxisTitles( const QString& theXTitle, { myXLabel->setText( theXTitle ); myYLabel->setText( theYTitle ); - myZLabel->setText( theZTitle ); + if( myIs3D ) + myZLabel->setText( theZTitle ); } /*! -- 2.39.2