From: isn Date: Wed, 18 Nov 2015 08:30:15 +0000 (+0300) Subject: refs #719 X-Git-Tag: v1.5~19^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b30408ddae47e25566babd7a7e244a772f29de4c;p=modules%2Fhydro.git refs #719 --- diff --git a/src/HYDROGUI/HYDROGUI_ExportLandCoverMapDlg.cxx b/src/HYDROGUI/HYDROGUI_ExportLandCoverMapDlg.cxx index 28533ef7..4c182536 100644 --- a/src/HYDROGUI/HYDROGUI_ExportLandCoverMapDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ExportLandCoverMapDlg.cxx @@ -57,6 +57,12 @@ HYDROGUI_ExportLandCoverMapDlg::HYDROGUI_ExportLandCoverMapDlg( QWidget* thePare aLayout->addWidget( myDeflLabel, 3, 0, 1, 1 ); aLayout->addWidget( myDeflSpinBox, 3, 1, 2, 2 ); } + else + { + myDeflSpinBox = NULL; + myDeflLabel = NULL; + myDiscrLabel = NULL; + } setMinimumSize( 300, 100 ); @@ -88,5 +94,8 @@ bool HYDROGUI_ExportLandCoverMapDlg::getAttrCheckBoxState() double HYDROGUI_ExportLandCoverMapDlg::getDeflValue() const { - return myDeflSpinBox->value(); + if (myDeflSpinBox) + return myDeflSpinBox->value(); + else + return -1; //value is not needed }