From: sbh Date: Mon, 15 Dec 2014 07:25:04 +0000 (+0300) Subject: Runtime error on loading PartSet plugin under linux fixed. X-Git-Tag: before_slalome_7.5.1~17^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eec1fa9ee3c0b11ab1675cd56d664ecb0db02d65;p=modules%2Fshaper.git Runtime error on loading PartSet plugin under linux fixed. --- diff --git a/src/SketchPlugin/SketchPlugin_Feature.cpp b/src/SketchPlugin/SketchPlugin_Feature.cpp index dcd2f9847..6e0f7111d 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.cpp +++ b/src/SketchPlugin/SketchPlugin_Feature.cpp @@ -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 diff --git a/src/SketchPlugin/SketchPlugin_Feature.h b/src/SketchPlugin/SketchPlugin_Feature.h index 7ca0eb6d3..d43fe66a9 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.h +++ b/src/SketchPlugin/SketchPlugin_Feature.h @@ -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();