Revision 25065 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/LayoutUndoExtension.java

View differences:

LayoutUndoExtension.java
77 77
	public boolean isEnabled() {
78 78
		if (PluginServices.getMDIManager().getActiveWindow() instanceof Layout){
79 79
			Layout layout=(Layout)PluginServices.getMDIManager().getActiveWindow();
80
			if (layout.getLayoutContext().getFrameCommandsRecord().moreUndoCommands() && layout.getLayoutContext().isEditable())
80
			if (layout.getLayoutContext().getFrameCommandsRecord().canUndo() && layout.getLayoutContext().isEditable())
81 81
				return true;
82 82
		}
83 83
		return false;

Also available in: Unified diff