[mapguide-trac] #1838: Rule reorder buttons in layer stylization
throw an error
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Oct 24 05:46:54 EDT 2011
#1838: Rule reorder buttons in layer stylization throw an error
--------------------------+-------------------------------------------------
Reporter: gabrimonfa | Owner: jng
Type: defect | Status: new
Priority: low | Milestone:
Component: Maestro | Version:
Severity: trivial | Keywords:
External_id: |
--------------------------+-------------------------------------------------
Maestro trunk (2011-10-24)
OS: Windows XP SP3
In layer stylization if I try to change rules order using the buttons I
receive the following error (translated back to english, so wording may be
a little different)
{{{
System.InvalidCastException: Cannot cast an object of type
'<get_Rules>d__0' into type 'System.Collections.IList'.
in
Maestro.Editors.LayerDefinition.Vector.Scales.ConditionList.MoveSelectedRule(Boolean
down) in
z:\maestro_src\Maestro.Editors\LayerDefinition\Vector\Scales\ConditionList.cs:riga
322
in
Maestro.Editors.LayerDefinition.Vector.Scales.ConditionListButtons.MoveRuleDownButton_Click(Object
sender, EventArgs e) in
z:\maestro_src\Maestro.Editors\LayerDefinition\Vector\Scales\ConditionListButtons.cs:riga
253
in System.Windows.Forms.Control.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
}}}
What is bad of this bug is that UI does swap rules so user think that
despite the error the reorder succeeded.
Then obviously layer stylization is different than expected looking at
the UI.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1838>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list