#include "HYDROGUI_DataObject.h"
#include "HYDROGUI_PolylineDlg.h"
#include "HYDROGUI_Tool.h"
+#include "HYDROGUI_Tool2.h"
#include "HYDROGUI_UpdateFlags.h"
#include <HYDROData_Document.h>
NCollection_Sequence<TCollection_AsciiString> aSectNames;
NCollection_Sequence<HYDROData_PolylineXY::SectionType> aSectTypes;
NCollection_Sequence<bool> aSectClosures;
+ bool aIsInCustom = myEditedObject->GetIsInCustomFlag();
+ myEditedObject->SetIsInCustomFlag( true );
myEditedObject->GetSections( aSectNames, aSectTypes, aSectClosures );
+ myEditedObject->SetIsInCustomFlag( aIsInCustom );
if (!aSectNames.IsEmpty())
{
aPolylineObj->AddSection( aSectName, aSectType, aSectClosure );
// Add the points fro section
- CurveCreator::Coordinates aCurveCoords = myCurve->getPoints( i );
+ CurveCreator::Coordinates aCurveCoords = myCurve->getCoords( i );
if ( aCurveCoords.size() <= 2 )
{