]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Runtime error on loading PartSet plugin under linux fixed.
authorsbh <sergey.belash@opencascade.com>
Mon, 15 Dec 2014 07:25:04 +0000 (10:25 +0300)
committersbh <sergey.belash@opencascade.com>
Mon, 15 Dec 2014 07:25:04 +0000 (10:25 +0300)
src/SketchPlugin/SketchPlugin_Feature.cpp
src/SketchPlugin/SketchPlugin_Feature.h

index dcd2f9847d14220cffbb693f67aed8448fb87e0d..6e0f7111d1c29125622aae6885db76c5e1003b5e 100644 (file)
@@ -31,13 +31,3 @@ SketchPlugin_Sketch* SketchPlugin_Feature::sketch()
   return mySketch;
 }
 
-
-void SketchPlugin_Feature::customisePresentation(AISObjectPtr thePrs)
-{
-  // if this is an edge
-  if (thePrs->getShapeType() == 6)
-    thePrs->setWidth(3);
-  // if this is a vertex
-  else if (thePrs->getShapeType() == 7)
-    thePrs->setPointMarker(6, 2.);
-}
\ No newline at end of file
index 7ca0eb6d36d6f0f995d0e32ca7c8d0c53073b2cc..d43fe66a9235b8b9983d7aea4e345ffe4d692741 100644 (file)
@@ -64,7 +64,15 @@ class SketchPlugin_Feature : public ModelAPI_Feature, public GeomAPI_ICustomPrs
   }
 
   /// Customize presentation of the feature
-  virtual void customisePresentation(AISObjectPtr thePrs);
+  virtual void customisePresentation(AISObjectPtr thePrs)
+  {
+    // if this is an edge
+    if (thePrs->getShapeType() == 6)
+      thePrs->setWidth(3);
+    // if this is a vertex
+    else if (thePrs->getShapeType() == 7)
+      thePrs->setPointMarker(6, 2.);
+  }
 
   /// Returns the sketch of this feature
   SketchPlugin_Sketch* sketch();