From: apo Date: Fri, 3 Feb 2006 09:44:43 +0000 (+0000) Subject: Fix for Bug IPAL11496 X-Git-Tag: mergeto_trunk_07Feb06~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d2181da78c1804e558ec5ac66b44685094543143;p=modules%2Fvisu.git Fix for Bug IPAL11496 "try_cutplanes_parameters()" with None as parameter raises NameError. --- diff --git a/src/VISU_SWIG/visu.py b/src/VISU_SWIG/visu.py index 6aade010..daadf7aa 100644 --- a/src/VISU_SWIG/visu.py +++ b/src/VISU_SWIG/visu.py @@ -742,7 +742,7 @@ def dump_deformedshape_parameters(theObject): # ---------------------- def try_cutplanes_parameters(thePattern) : - if thePattern is None : return aList + if thePattern is None : return None import copy import random