Unchecked Zoom value

Topics: Bugs, WPF
Apr 15, 2011 at 10:49 AM

In the Zoom setter (GMapControl) is absent min-max value verification.

once the value exceeds the limits, something like - throw new ArgumentOutOfRangeException should be generated, in order to inform the user of the wrong value used.

Actually a unmanaged IndexOutOfRange exception is generated by the .NET Framework, confusing the user if the Zoom exceeds some (unknown, by the way) values.