]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fixed V3d_UnMapped exception thrown during HDF tests V9_12_0b1
authormbs <martin.bernhard@opencascade.com>
Fri, 17 Nov 2023 13:00:32 +0000 (13:00 +0000)
committermbs <martin.bernhard@opencascade.com>
Fri, 17 Nov 2023 13:00:32 +0000 (13:00 +0000)
src/PartSet/PartSet_Module.cpp

index 405bd8c74a87ffdbc94312f7a1aac8b4b6b77594..f644b6a54692194184d8dd303df21b05949cbdf4 100644 (file)
@@ -1171,13 +1171,13 @@ void PartSet_Module::onViewTransformed(int theTrsfType)
     return;
 
   bool isModified = false;
-  double aLen = aView->Convert(SketcherPrs_Tools::getConfigArrowSize());
   ModuleBase_Operation* aCurrentOperation = myWorkshop->currentOperation();
   if (aCurrentOperation &&
     (PartSet_SketcherMgr::isSketchOperation(aCurrentOperation) ||
      sketchMgr()->isNestedSketchOperation(aCurrentOperation) ||
      (aCurrentOperation->id() == "Measurement")))
   {
+    double aLen = aView->Convert(SketcherPrs_Tools::getConfigArrowSize());
     SketcherPrs_Tools::setArrowSize(aLen);
     const double aCurScale = aViewer->activeView()->Camera()->Scale();
     aViewer->SetScale(aViewer->activeView(), aCurScale);