git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45701
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if index == 0: return # No previous sibling found
# Remove highlight, update testWin
if index == 0: return # No previous sibling found
# Remove highlight, update testWin
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.needUpdate = True
g.testWin.highLight.Remove()
tree.needUpdate = True
if not next: return
# Remove highlight, update testWin
if not next: return
# Remove highlight, update testWin
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.needUpdate = True
g.testWin.highLight.Remove()
tree.needUpdate = True
if not self.ItemsAreCompatible(tree.GetPyData(pparent).treeObject(), tree.GetPyData(selected).treeObject()): return
# Remove highlight, update testWin
if not self.ItemsAreCompatible(tree.GetPyData(pparent).treeObject(), tree.GetPyData(selected).treeObject()): return
# Remove highlight, update testWin
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.needUpdate = True
g.testWin.highLight.Remove()
tree.needUpdate = True
if not self.ItemsAreCompatible(parent, tree.GetPyData(selected).treeObject()): return
# Remove highlight, update testWin
if not self.ItemsAreCompatible(parent, tree.GetPyData(selected).treeObject()): return
# Remove highlight, update testWin
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.needUpdate = True
g.testWin.highLight.Remove()
tree.needUpdate = True
tree.HighLight(tree.pendingHighLight)
except:
# Remove highlight if any problem
tree.HighLight(tree.pendingHighLight)
except:
# Remove highlight if any problem
- if g.testWin.highLight:
+ if g.testWin and g.testWin.highLight:
g.testWin.highLight.Remove()
tree.pendingHighLight = None
raise
g.testWin.highLight.Remove()
tree.pendingHighLight = None
raise