From 316a01093dfae6ffa891be356543074a4c55b0e8 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 21 Feb 2001 15:45:55 +0000 Subject: [PATCH] Waste 2.0 has many more options for the undo label. --- Mac/Tools/IDE/Wtext.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py index 11b02768e6f..41ea5ec818e 100644 --- a/Mac/Tools/IDE/Wtext.py +++ b/Mac/Tools/IDE/Wtext.py @@ -85,7 +85,8 @@ def updatescrollbars(self): UNDOLABELS = [ # Indexed by WEGetUndoInfo() value - None, "", "typing", "Cut", "Paste", "Clear", "Drag", "Style"] + None, "", "typing", "Cut", "Paste", "Clear", "Drag", "Style", + "Ruler", "backspace", "delete", "transform", "resize"] class EditText(Wbase.SelectableWidget, _ScrollWidget): @@ -452,7 +453,10 @@ def can_undo(self, menuitem): #if not doundo: # return 0 which, redo = self.ted.WEGetUndoInfo() - which = UNDOLABELS[which] + if which < len(UNDOLABELS): + which = UNDOLABELS[which] + else: + which = "" if which == None: return None if redo: