]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Image positioning corrected (Bug #60).
authoradv <adv@opencascade.com>
Wed, 4 Dec 2013 12:07:50 +0000 (12:07 +0000)
committeradv <adv@opencascade.com>
Wed, 4 Dec 2013 12:07:50 +0000 (12:07 +0000)
src/HYDROData/HYDROData_Image.cxx
src/HYDROGUI/HYDROGUI_ImportImageDlg.cxx

index 082f160ced1d4eaade67c4c5015cb664f1091b6f..bed15ad48479f4be5585e5ff7199ba1cc3ee754d 100644 (file)
@@ -353,15 +353,15 @@ void HYDROData_Image::UpdateTrsf()
   {
     double aXCart = 0, aYCart = 0;
 
-    HYDROData_Lambert93::toXY( aTrsfPointA.x(), aTrsfPointA.y(), aXCart, aYCart );
+    HYDROData_Lambert93::toXY( aTrsfPointA.y(), aTrsfPointA.x(), aXCart, aYCart );
     aTrsfPointA = QPointF( aXCart, aYCart );
 
-    HYDROData_Lambert93::toXY( aTrsfPointB.x(), aTrsfPointB.y(), aXCart, aYCart );
+    HYDROData_Lambert93::toXY( aTrsfPointB.y(), aTrsfPointB.x(), aXCart, aYCart );
     aTrsfPointB = QPointF( aXCart, aYCart );
 
     if ( !anIsByTwoPoints )
     {
-      HYDROData_Lambert93::toXY( aTrsfPointC.x(), aTrsfPointC.y(), aXCart, aYCart );
+      HYDROData_Lambert93::toXY( aTrsfPointC.y(), aTrsfPointC.x(), aXCart, aYCart );
       aTrsfPointC = QPointF( aXCart, aYCart );
     }
   }
index dba3dfb7a4170b40563114485922621b6ed7815d..692c16fffb3224a7dc61d5225fd6f4a00ae2c3b6 100644 (file)
@@ -181,7 +181,7 @@ HYDROGUI_ImportImageDlg::HYDROGUI_ImportImageDlg( HYDROGUI_Module* theModule, co
     myGeodesicLabels << aPointXDegLabel << aPointYDegLabel
                     << aPointXMinLabel << aPointYMinLabel
                     << aPointXSecLabel << aPointYSecLabel
-                    << aPointLonLabel << aPointLatLabel;
+                    << aPointLatLabel << aPointLonLabel;
 
     QtxIntSpinBox* aPointXDeg = new QtxIntSpinBox( -180, 180, 1, myTransformGroup );
     QtxIntSpinBox* aPointYDeg = new QtxIntSpinBox( 0, 89, 1, myTransformGroup );
@@ -217,7 +217,7 @@ HYDROGUI_ImportImageDlg::HYDROGUI_ImportImageDlg( HYDROGUI_Module* theModule, co
     aTransformLayout->addWidget( aPointXMinLabel,  aRow + 1, 6 );
     aTransformLayout->addWidget( aPointXSec,       aRow + 1, 7 );
     aTransformLayout->addWidget( aPointXSecLabel,  aRow + 1, 8 );
-    aTransformLayout->addWidget( aPointLonLabel,   aRow + 1, 9 );
+    aTransformLayout->addWidget( aPointLatLabel,   aRow + 1, 9 );
 
     aTransformLayout->addWidget( aCartPointX,      aRow + 1, 3, 1, 6 );
     aTransformLayout->addWidget( aRefPointX,       aRow + 1, 3, 1, 6 );
@@ -230,7 +230,7 @@ HYDROGUI_ImportImageDlg::HYDROGUI_ImportImageDlg( HYDROGUI_Module* theModule, co
     aTransformLayout->addWidget( aPointYMinLabel,  aRow + 2, 6 );
     aTransformLayout->addWidget( aPointYSec,       aRow + 2, 7 );
     aTransformLayout->addWidget( aPointYSecLabel,  aRow + 2, 8 );
-    aTransformLayout->addWidget( aPointLatLabel,   aRow + 2, 9 );
+    aTransformLayout->addWidget( aPointLonLabel,   aRow + 2, 9 );
 
     aTransformLayout->addWidget( aCartPointY,      aRow + 2, 3, 1, 6 );
     aTransformLayout->addWidget( aRefPointY,       aRow + 2, 3, 1, 6 );