Cancelling the just created surface deletes it

Now if the user creates a surface, the cancel in the widget deletes it.
If an already existing one is opened for editing, cancel rejects the
user change in fill type, but the surface remains.
This commit is contained in:
balazs-bamer
2015-01-29 09:59:00 +01:00
committed by wmayer
parent 29eed4a3f6
commit 76c357ad70
7 changed files with 34 additions and 13 deletions

View File

@@ -141,3 +141,12 @@ void BSurf::createFace(const Handle_Geom_BoundedSurface &aSurface)
if (aFace.IsNull()) { Standard_Failure::Raise("Resulting Face is null"); }
this->Shape.setValue(aFace);
}
void BSurf::correcteInvalidFillType()
{
int ftype = filltype.getValue();
if(ftype == InvalidStyle)
{
filltype.setValue(StretchStyle);
}
}