From 55d6f408a23974714b6b06af2af86c10d5942d2a Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 23 May 2007 09:58:15 +0000 Subject: [PATCH] Fix for Bug IPAL16044 - IOLS. fatal error SIGSEGV on some presentations --- src/PIPELINE/VISU_CutPlanesPL.cxx | 11 ++++++++++- src/PIPELINE/VISU_CutPlanesPL.hxx | 5 +---- 2 files changed, 11 insertions(+), 5 deletions(-) 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 -- 2.39.2