[mapguide-commits] r6851 - branches/2.4/MgDev/Desktop/MapViewer

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Jul 5 03:09:12 PDT 2012


Author: jng
Date: 2012-07-05 03:09:11 -0700 (Thu, 05 Jul 2012)
New Revision: 6851

Modified:
   branches/2.4/MgDev/Desktop/MapViewer/MgMapViewer.cs
Log:
#2057: Do nothing on mouse wheel if no map is loaded.

Modified: branches/2.4/MgDev/Desktop/MapViewer/MgMapViewer.cs
===================================================================
--- branches/2.4/MgDev/Desktop/MapViewer/MgMapViewer.cs	2012-07-04 16:21:58 UTC (rev 6850)
+++ branches/2.4/MgDev/Desktop/MapViewer/MgMapViewer.cs	2012-07-05 10:09:11 UTC (rev 6851)
@@ -2390,6 +2390,9 @@
 
         private void HandleMouseWheel(MouseEventArgs e)
         {
+            if (!this.HasLoadedMap)
+                return;
+
             if (delayRenderTimer == null)
             {
                 delayRenderTimer = new System.Timers.Timer();



More information about the mapguide-commits mailing list