]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2961: Сrash when Change sketch plane
authorazv <azv@opencascade.com>
Tue, 30 Jul 2019 08:25:23 +0000 (11:25 +0300)
committerazv <azv@opencascade.com>
Tue, 30 Jul 2019 08:25:23 +0000 (11:25 +0300)
src/SketcherPrs/SketcherPrs_Equal.cpp

index 72a07d0719dbc596f80e72afa8b7b4f47e227ed2..bc6d207a5ea1aa19da6e8f8da7b6727304cfbfa9 100644 (file)
@@ -57,6 +57,8 @@ bool SketcherPrs_Equal::updateIfReadyToDisplay(double theStep, bool withColor) c
 {
   if (!IsReadyToDisplay(myConstraint, plane()))
     return false;
+  if (!plane())
+    return false;
 
   ObjectPtr aObj1 =
     SketcherPrs_Tools::getResult(myConstraint, SketchPlugin_Constraint::ENTITY_A());