mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
0023326: [CEA 1934] Error when extracting a shape
This commit is contained in:
parent
b11dda6c23
commit
b95d6c1ac8
@ -1015,6 +1015,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(LOGBOOK& log) const
|
||||
|
||||
aShape = anExtractor.GetResult();
|
||||
|
||||
if (aShape.IsNull()) {
|
||||
Standard_ConstructionError::Raise("Result of extraction is empty");
|
||||
}
|
||||
|
||||
// Get statistics.
|
||||
const TopTools_ListOfShape &aRemoved = anExtractor.GetRemoved();
|
||||
const TopTools_ListOfShape &aModified = anExtractor.GetModified();
|
||||
|
@ -1298,12 +1298,18 @@ void OperationGUI_ExtractionDlg::eraseSubShape(const int theId)
|
||||
void OperationGUI_ExtractionDlg::eraseAll()
|
||||
{
|
||||
TColStd_MapIteratorOfMapOfInteger anIter(myMapDisplayedIDs);
|
||||
TColStd_ListOfInteger aDisplayedIDs;
|
||||
|
||||
for (; anIter.More(); anIter.Next()) {
|
||||
eraseSubShape(anIter.Key());
|
||||
aDisplayedIDs.Append(anIter.Key());
|
||||
}
|
||||
|
||||
TColStd_ListIteratorOfListOfInteger aListIter(aDisplayedIDs);
|
||||
|
||||
for (; aListIter.More(); aListIter.Next()) {
|
||||
eraseSubShape(aListIter.Value());
|
||||
}
|
||||
|
||||
myMapDisplayedIDs.Clear();
|
||||
getDisplayer()->UpdateViewer();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user