Bug SS-141
2 votes

TextRegion: Shift+RightArrow at the end of the region causes an ArgumentOutOfRangeException

Created by Davide on 5/7/2014 1:21 AM Last Updated by smath on 6/22/2014 10:53 PM
%
 (hrs)
Logged: 0.5   (hrs)

 Description

At the end of a text block if you press Shift+RightArrow a critical error appears.
 
 
=============================================================
 
System.ArgumentOutOfRangeException: lenght can't be less than zero.
parameter: length
   in System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   in SMath.Control.TextRegion.()
   in SMath.Control.TextRegion.GetSelectionStatus()
   in SMath.Control.Worksheet.()
   in SMath.Control.Worksheet.PageStatusManager(Boolean forced)
   in SMath.Control.Worksheet.Insert(String value)
   in ..(String )
   in ..(String )
   in ..(Keys )
   in ..(Object , PreviewKeyDownEventArgs )
   in System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   in System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)[/quote]

    smath (Sunday, June 22, 2014 10:53 PM) #

Thank you! Issue fixed.