Bug SS-171
4 votes

Area regions: issues on collapsing

Created by Davide on 7/9/2014 3:22 AM Last Updated by smath on 8/1/2014 1:14 PM
Logged: 16   (hrs)


Issues (SMath 0.97.5301)

- write something on the canvas, add an area under it, move the area header above what you have written and collapse the area: data remains ouside the area.

- write something on the canvas, add an area above it, move the area footer below what you have written and collapse the area: data goes over the header (needs space above the header).

- moving collapsed Area region cause Unhandled exceptions:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the dimension of the collection
Parameter: index
   in System.ThrowHelper.ThrowArgumentOutOfRangeException()
   in System.Collections.Generic.List`1.get_Item(Int32 index)
   in SMath.Control.Worksheet.CopyOrMoveRegions(List`1 selectedRegions, List`1 selected)
   in SMath.Control.WorksheetControl.OnMouseUp(MouseEventArgs e)
   in SMath.Control.Worksheet.OnMouseUp(MouseEventArgs e)
   in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   in System.Windows.Forms.Control.WndProc(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)

    smath (Friday, August 1, 2014 1:13 PM) #

All known Area related issues are fixed.

    ioan92 (Monday, July 14, 2014 9:02 PM) #

Hi Davide,


I experienced this also by myself.

My  "witchcraft" survival solution was:

* do not collapse yet the area and save the file;

* reopen the file; now you can colapse the area without incident.


Best Regards,



    Davide (Wednesday, July 9, 2014 4:36 PM) #