Issue #436 Fix deleting zones

Change-Id: I03f07f8a5a7a06c4c96128de25b17204392cc466

Former-commit-id: fc48cdc5e7 [formerly 2d7c80b0cf] [formerly 9cbabdb8f4 [formerly a925e1432a059d4bfe1582a82c3d4e13caedbff9]]
Former-commit-id: 9cbabdb8f4
Former-commit-id: fcf0c35471
This commit is contained in:
Ron Anderson 2012-09-19 09:37:05 -05:00
parent 1a4c7a760e
commit d233192037

View file

@ -224,8 +224,14 @@ class Procedure (SmartScript.SmartScript):
hazardKey = selectedHazard
defaultHazKey = ""
if len(defaultSegment) > 0 and defaultHazard is not None:
defaultHazKey = defaultHazard + ":" + defaultSegment
if defaultHazard is not None:
index = string.find(defaultHazard, " ")
if index != -1:
defaultHazard = defaultHazard[0:index]
defaultHazKey = defaultHazard
if len(defaultSegment) > 0:
defaultHazKey += ":" + defaultSegment
weName = self._hazUtils._makeTempWEName(hazardKey)