Index: src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomNextCommand.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomNextCommand.cs (.../MapZoomNextCommand.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomNextCommand.cs (.../MapZoomNextCommand.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -1,15 +1,7 @@ namespace DeltaShell.Plugins.SharpMapGis.Gui.Commands { - public class MapZoomNextCommand: MapZoomHistoryCommand + public class MapZoomNextCommand : MapZoomHistoryCommand { - protected override void OnExecute(params object[] arguments) - { - ZoomHistoryToolMapTool.NextZoomState(); - MapView.MapControl.Refresh(); - - base.OnExecute(arguments); - } - public override bool Enabled { get @@ -18,9 +10,17 @@ { return false; } - + return ZoomHistoryToolMapTool.RedoCount > 0; } } + + protected override void OnExecute(params object[] arguments) + { + ZoomHistoryToolMapTool.NextZoomState(); + MapView.MapControl.Refresh(); + + base.OnExecute(arguments); + } } } \ No newline at end of file