From 609b17cdbd000d6813a1f3fc569027f9b7a741e7 Mon Sep 17 00:00:00 2001 From: adv Date: Tue, 10 Dec 2013 07:36:49 +0000 Subject: [PATCH] Minor changes. --- src/HYDROGUI/HYDROGUI_GeoreferencementDlg.h | 6 +++--- src/HYDROGUI/HYDROGUI_GeoreferencementOp.cxx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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() ); } -- 2.39.2