]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #719
authorisn <isn@opencascade.com>
Wed, 18 Nov 2015 08:30:15 +0000 (11:30 +0300)
committerisn <isn@opencascade.com>
Wed, 18 Nov 2015 08:30:15 +0000 (11:30 +0300)
src/HYDROGUI/HYDROGUI_ExportLandCoverMapDlg.cxx

index 28533ef7e4e75cbecbdac33b07cbfc214359c34a..4c18253687d04cfb38a47a6de23f3e996c94887c 100644 (file)
@@ -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
 }