[mapguide-trac] #1748: Delete all display scales and get an error
MapGuide Open Source
trac_mapguide at osgeo.org
Wed Jul 13 13:44:42 EDT 2011
#1748: Delete all display scales and get an error
-----------------------+----------------------------------------------------
Reporter: andrewd | Owner: jng
Type: defect | Status: new
Priority: low | Milestone:
Component: Maestro | Version: 2.1.0
Severity: minor | Keywords:
External_id: |
-----------------------+----------------------------------------------------
In the map editor, delete all "display scales" and you will get the
following error:
Index was out of range. Must be non-negative and less than the size of the
collection.
Parameter name: index
System.ArgumentOutOfRangeException: Index was out of range. Must be non-
negative and less than the size of the collection.
Parameter name: index
at
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument
argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at
Maestro.Editors.MapDefinition.FiniteScaleListCtrl.OnScaleListChanged(Object
sender, ListChangedEventArgs e) in
d:\Workspace\maestro-3.0\Maestro.Editors\MapDefinition\FiniteScaleListCtrl.cs:line
79
at System.ComponentModel.ListChangedEventHandler.Invoke(Object sender,
ListChangedEventArgs e)
at
System.ComponentModel.BindingList`1.OnListChanged(ListChangedEventArgs e)
at System.ComponentModel.BindingList`1.FireListChanged(ListChangedType
type, Int32 index)
at System.ComponentModel.BindingList`1.RemoveItem(Int32 index)
at System.Collections.ObjectModel.Collection`1.Remove(T item)
at
Maestro.Editors.MapDefinition.FiniteScaleListCtrl.btnRemoveScale_Click(Object
sender, EventArgs e) in
d:\Workspace\maestro-3.0\Maestro.Editors\MapDefinition\FiniteScaleListCtrl.cs:line
145
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs
e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1748>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list