]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Minor changes.
authoradv <adv@opencascade.com>
Tue, 10 Dec 2013 07:36:49 +0000 (07:36 +0000)
committeradv <adv@opencascade.com>
Tue, 10 Dec 2013 07:36:49 +0000 (07:36 +0000)
src/HYDROGUI/HYDROGUI_GeoreferencementDlg.h
src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx

index 52879a486bb7784b8954af3a0dbc302013f5fa75..399ddfc25df558cd05193979c33a474957b87acd 100644 (file)
@@ -52,8 +52,8 @@ public:
 
     QString Name;
 
-    ProfileGeoData() :
-      isEmpty( true ), isIncomplete( false ) {}
+    ProfileGeoData( const QString& theName ) :
+      Name( theName ), isEmpty( true ), isIncomplete( false ) {}
 
     ProfileGeoData( const QString& theName,
                     const QString& theXg, const QString& theYg, 
@@ -62,7 +62,7 @@ public:
     ProfileGeoData( const QString& theName,
                     double theXg, double theYg, 
                     double theXd, double theYd )
-      : Name( theName), Xg( theXg ), Yg( theYg ), Xd( theXd ), Yd( theYd ),
+      : Name( theName ), Xg( theXg ), Yg( theYg ), Xd( theXd ), Yd( theYd ),
       isIncomplete(false), isEmpty(false) {}
   };
   typedef QList<ProfileGeoData> ProfilesGeoDataList;
index 28fac4f9a87653a494e42dab2cdb4fc08e6386c0..32355f8a982beede7991bdc5df6ea107de71b9da 100644 (file)
@@ -280,12 +280,12 @@ void HYDROGUI_GeoreferencementOp::setPanelData(
       continue;
     }
 
-    HYDROGUI_GeoreferencementDlg::ProfileGeoData aGeoData;
+    HYDROGUI_GeoreferencementDlg::ProfileGeoData aGeoData( aProfile->GetName() );
 
     gp_XY aFirstPoint, aLastPoint;
     if ( aProfile->GetFirstPoint( aFirstPoint ) && aProfile->GetLastPoint( aLastPoint ) ) {
       aGeoData = 
-        HYDROGUI_GeoreferencementDlg::ProfileGeoData( aProfile->GetName()
+        HYDROGUI_GeoreferencementDlg::ProfileGeoData( aGeoData.Name
                                                       aFirstPoint.X(), aFirstPoint.Y(),
                                                       aLastPoint.X(), aLastPoint.Y() );
     }