{
Region& aRegion = *anIter;
if ( aRegion.Shape )
+ {
+ aRegion.Shape->erase( false );
delete aRegion.Shape;
+ }
- aRegion.Shape = new HYDROGUI_Shape( aCtx );
+ aRegion.Shape = new HYDROGUI_Shape( aCtx, NULL );
- aRegion.Shape->setFillingColor( aRegion.FillingColor, false );
- aRegion.Shape->setBorderColor( aRegion.BorderColor, false );
- aRegion.Shape->setFace( aRegion.SplitData.Face(), true );
+ aRegion.Shape->setFillingColor( aRegion.FillingColor, false, false );
+ aRegion.Shape->setBorderColor( aRegion.BorderColor, false, false );
+ aRegion.Shape->setFace( aRegion.SplitData.Face(), true, false );
}
//Process the draw events for viewer
Region& aRegion = *anIter;
if ( aRegion.Shape )
{
+ aRegion.Shape->erase( false );
delete aRegion.Shape;
aRegion.Shape = NULL;
}