]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL16044
authorapo <apo@opencascade.com>
Wed, 23 May 2007 09:58:15 +0000 (09:58 +0000)
committerapo <apo@opencascade.com>
Wed, 23 May 2007 09:58:15 +0000 (09:58 +0000)
 - IOLS. fatal error SIGSEGV on some presentations

src/PIPELINE/VISU_CutPlanesPL.cxx
src/PIPELINE/VISU_CutPlanesPL.hxx

index caad525c063b34aee327ebbba6ee0986255cb684..3abaeeea41d38ff1ad97343c40ee62bdfa70b8f7 100644 (file)
@@ -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
index 936c1ff1a4acc61c6af717e8962a890c71657e7e..f59d3eb193c22da009f77d9e722d76ed3aa3d9a8 100644 (file)
@@ -99,10 +99,7 @@ public:
 
   virtual
   int
-  GetNbParts()
-  {
-    return myNbParts;
-  }
+  GetNbParts();
 
 public:
   virtual