From b30408ddae47e25566babd7a7e244a772f29de4c Mon Sep 17 00:00:00 2001 From: isn Date: Wed, 18 Nov 2015 11:30:15 +0300 Subject: [PATCH] refs #719 --- src/HYDROGUI/HYDROGUI_ExportLandCoverMapDlg.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 } -- 2.39.2