Error while documentation editing (#231)

Hello.

I'm trying to place caret in the end of documentation and I get an ArgumentOutOfRangeException.

Here is the call stack:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: startIndex

at System.String.Insert(Int32 startIndex, String value)

at SoftwareIdeasModeler.Core.TextRendering.FormattedText.InsertText(String text, Int32 index)

at SoftwareIdeasModeler.Controls.FormattedTextBox.Commands.InsertTextCommand.Execute()

at SoftwareIdeasModeler.Core.Projecting.CommandStack.AddCommand(Command command, Boolean execute)

at SoftwareIdeasModeler.Core.Projecting.CommandStack.Execute(Command command)

at SoftwareIdeasModeler.Controls.FormattedTextBox.FormattedTextBox.InsertText(String text)

at SoftwareIdeasModeler.Controls.FormattedTextBox.FormattedTextBox.InsertCharacter(Char ch)

at SoftwareIdeasModeler.Controls.FormattedTextBox.FormattedTextBox.ProcessKeyPress(Char c)

at SoftwareIdeasModeler.Controls.FormattedTextBox.FormattedTextBox.ProcessMnemonic(Char charCode)

at System.Windows.Forms.ContainerControl.ProcessDialogChar(Char charCode)

at System.Windows.Forms.Control.ProcessDialogChar(Char charCode)

at System.Windows.Forms.ContainerControl.ProcessDialogChar(Char charCode)

at System.Windows.Forms.Control.PreProcessMessage(Message& msg)

at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)

at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

Created
20 May 2013 16:03:17
Closed
24 May 2013 23:01:09
Requested by
Dmitry
State
Solved
Version
6.15.4881.36661
OperatingSystem
WinXp Prof SP3
Solved in
6.16

Dusan Rodina - softwareideas.net 20 May 2013 16:38:13

Hello,

I will fix it as soon as possible.

TrackedRequestComment
Your Name:
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]