[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-trac
Subject:    [mapguide-trac] #1838: Rule reorder buttons in layer stylization
From:       "MapGuide Open Source" <trac_mapguide () osgeo ! org>
Date:       2011-10-24 9:46:54
Message-ID: 048.714ccb6586e1d9a6cf6dad02defc2a17 () osgeo ! org
[Download RAW message or body]

[Attachment #2 (text/plain)]

#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


_______________________________________________
mapguide-trac mailing list
mapguide-trac@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-trac


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic