From: apo Date: Wed, 23 May 2007 09:58:15 +0000 (+0000) Subject: Fix for Bug IPAL16044 X-Git-Tag: V4_0~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55d6f408a23974714b6b06af2af86c10d5942d2a;p=modules%2Fvisu.git Fix for Bug IPAL16044 - IOLS. fatal error SIGSEGV on some presentations --- diff --git a/src/PIPELINE/VISU_CutPlanesPL.cxx b/src/PIPELINE/VISU_CutPlanesPL.cxx index caad525c..3abaeeea 100644 --- a/src/PIPELINE/VISU_CutPlanesPL.cxx +++ b/src/PIPELINE/VISU_CutPlanesPL.cxx @@ -349,7 +349,7 @@ void VISU_CutPlanesPL ::SetNbParts(int theNbParts) { - if(theNbParts > 0 && myNbParts != theNbParts){ + if(theNbParts > 0 && GetNbParts() != theNbParts){ myPartPosition.resize(theNbParts); myPartCondition.resize(theNbParts, 1); myNbParts = theNbParts; @@ -358,6 +358,15 @@ VISU_CutPlanesPL } +//---------------------------------------------------------------------------- +int +VISU_CutPlanesPL +::GetNbParts() +{ + return myPartPosition.size(); +} + + //---------------------------------------------------------------------------- void VISU_CutPlanesPL diff --git a/src/PIPELINE/VISU_CutPlanesPL.hxx b/src/PIPELINE/VISU_CutPlanesPL.hxx index 936c1ff1..f59d3eb1 100644 --- a/src/PIPELINE/VISU_CutPlanesPL.hxx +++ b/src/PIPELINE/VISU_CutPlanesPL.hxx @@ -99,10 +99,7 @@ public: virtual int - GetNbParts() - { - return myNbParts; - } + GetNbParts(); public: virtual