Fix for undoManager thowing exception in -canUndo.

This commit is contained in:
Randall Luecke committed 2010-05-19 01:33:13 -05:00
1 parent 76443a5d7f
commit a9f970459b
1 file changed
+2 -2
+2 -2
View File
@@ -317,8 +317,8 @@ if (_currentGroup == nil)
{
if (_undoStack.length > 0)
return YES;
return [_currentGrouping actions].length > 0;
return [[_currentGrouping invocations] count] > 0;
}
// Preform Undo and Redo