0026219: ShapeUpgrade_UnifySameDomain fails with StdFail_NotDone exception
[occt.git] / src / BRepOffsetAPI / BRepOffsetAPI_MiddlePath.cxx
index df864df..a18ba9a 100644 (file)
@@ -389,7 +389,10 @@ void BRepOffsetAPI_MiddlePath::Build()
         break;
       }
     }
-    myPaths.Append(Edges);
+    if (!Edges.IsEmpty())
+      myPaths.Append(Edges);
+    else
+      return;
   }
 
   //Filling of "myPaths"