Index: src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomPreviousCommand.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomPreviousCommand.cs (.../MapZoomPreviousCommand.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomPreviousCommand.cs (.../MapZoomPreviousCommand.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -2,25 +2,25 @@ { public class MapZoomPreviousCommand : MapZoomHistoryCommand { - protected override void OnExecute(params object[] arguments) - { - ZoomHistoryToolMapTool.PreviousZoomState(); - MapView.MapControl.Refresh(); - - base.OnExecute(arguments); - } - public override bool Enabled { get { - if(MapView == null) + if (MapView == null) { return false; } return ZoomHistoryToolMapTool.UndoCount > 0; } } + + protected override void OnExecute(params object[] arguments) + { + ZoomHistoryToolMapTool.PreviousZoomState(); + MapView.MapControl.Refresh(); + + base.OnExecute(arguments); + } } } \ No newline at end of file