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,
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;
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() );
}