Salome HOME
bug #155: create profile of splines
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageDlg.cxx
index d389433fa1bc9d865d9905f96e44b3956f160faa..692c16fffb3224a7dc61d5225fd6f4a00ae2c3b6 100644 (file)
@@ -184,7 +184,7 @@ HYDROGUI_ImportImageDlg::HYDROGUI_ImportImageDlg( HYDROGUI_Module* theModule, co
                     << aPointLatLabel << aPointLonLabel;
 
     QtxIntSpinBox* aPointXDeg = new QtxIntSpinBox( -180, 180, 1, myTransformGroup );
-    QtxIntSpinBox* aPointYDeg = new QtxIntSpinBox( 0, 90, 1, myTransformGroup );
+    QtxIntSpinBox* aPointYDeg = new QtxIntSpinBox( 0, 89, 1, myTransformGroup );
     QtxIntSpinBox* aPointXMin = new QtxIntSpinBox( 0, 59, 1, myTransformGroup );
     QtxIntSpinBox* aPointYMin = new QtxIntSpinBox( 0, 59, 1, myTransformGroup );
     QtxDoubleSpinBox* aPointXSec = new QtxDoubleSpinBox( 0, 59.9999, 1, 4, 4, myTransformGroup );
@@ -368,8 +368,13 @@ void HYDROGUI_ImportImageDlg::reset()
     myCartPointXMap[ aPointType ]->clear();
     myCartPointYMap[ aPointType ]->clear();
   }
+  
+  // Emulate turning off C point usage
+  myPointCEnabler->blockSignals( true );
   myPointCEnabler->setChecked( true );
+  myPointCEnabler->blockSignals( false );
   myPointCEnabler->toggle();
+  
   myTransformGroup->setEnabled( false );
   myRefImage->clear();