From: adv Date: Tue, 10 Dec 2013 07:36:49 +0000 (+0000) Subject: Minor changes. X-Git-Tag: BR_hydro_v_0_5~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=609b17cdbd000d6813a1f3fc569027f9b7a741e7;p=modules%2Fhydro.git Minor changes. --- diff --git a/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.h b/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.h index 52879a48..399ddfc2 100644 --- a/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.h +++ b/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.h @@ -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 ProfilesGeoDataList; diff --git a/src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx b/src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx index 28fac4f9..32355f8a 100644 --- a/src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx +++ b/src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx @@ -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() ); }