Transpose Lines - Wrapped text

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Daniel Wadenhof - Software Developer, ABB Robotics
Version: 4.0.0237
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
(Using the sample project...)

There is a bug in the TranposeLines Command. An exception i thrown when transposing wrapped lines (having enabled WordWrap==Word at least)

1. Launch sample project.
2. Luanch SDI Editor Application.
3. In Properties Window, change WordWrap to "Word".
4. Resize the window to make sure some lines are wrapped.
5. Press and hold Alt+Ctrl+Shift+T (for Transpose Lines).

Result:
System.IndexOutOfRangeException was unhandled
Message="Index was outside the bounds of the array."
Source="ActiproSoftware.SyntaxEditor.Net20"
...

/Daniel

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Good find... it should have been using document lines instead of display lines for line transposition. This is now fixed for the next maintenance release.


Actipro Software Support

The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.