View Issue Details

IDProjectCategoryView StatusLast Update
0004126NoesisGUIC++ SDKpublic2025-05-05 15:30
ReporterHenryKaufman Assigned Tojsantos  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2.7 
Target Version3.2.8Fixed in Version3.2.8 
Summary0004126: multiline TextBox text editing handles insertion wrong in \r\n line endings.
Description

This bug in the Noesis multiline text editor (TextBox).
In our multiline text fields, we often end our lines with the Windows standard \r\n. In the Visual Studio text viewer in the debugger, this just shows up as a newline, e.g. after "settings:" below, there is a blank line (I'll use this text as an example in this bug report):

(see TextView.png)

But if you view the actual char array data, it looks like this: "...settings:\r\n\r\nTrack...":

(see TextArrayPreEdit.png)

This seems to cause buggy behavior when you position the input cursor in a TextBox on a blank line:

(See TextBoxEditing1.png)

When you type something, it appears on the previous line (here I typed "g"):

(See TextBoxEditing2.png)

...and now looking at the character array data, the "g" was inserted between the \r and the \n:

(see TextArrayPostEdit.png)

I think the error is a kind of off-by-one error on the cursor insert position in the case where newlines are actually represented by 2 characters. The "g" should have been inserted after the \r\n and before the next \r\n.

TagsNo tags attached.
Attached Files
TextView.png (18,539 bytes)   
TextView.png (18,539 bytes)   
textArrayPreEdit.png (26,900 bytes)   
textArrayPreEdit.png (26,900 bytes)   
TextBoxEditing1.png (63,223 bytes)   
TextBoxEditing1.png (63,223 bytes)   
TextBoxEditing2.png (82,453 bytes)   
TextBoxEditing2.png (82,453 bytes)   
TestArrayPostEdit.png (27,558 bytes)   
TestArrayPostEdit.png (27,558 bytes)   
PlatformWindows

Activities

jsantos

jsantos

2025-05-03 13:44

manager   ~0010569

Last edited: 2025-05-05 15:30

Fixed in r15527

jsantos

jsantos

2025-05-05 15:29

manager   ~0010570

I fixed two extra scenarios with \r\n in r15530

Issue History

Date Modified Username Field Change
2025-05-01 22:46 HenryKaufman New Issue
2025-05-01 22:46 HenryKaufman File Added: TextView.png
2025-05-01 22:46 HenryKaufman File Added: textArrayPreEdit.png
2025-05-01 22:46 HenryKaufman File Added: TextBoxEditing1.png
2025-05-01 22:46 HenryKaufman File Added: TextBoxEditing2.png
2025-05-01 22:46 HenryKaufman File Added: TestArrayPostEdit.png
2025-05-01 23:12 HenryKaufman Product Version 3.2.5 => 3.2.7
2025-05-02 10:39 sfernandez Assigned To => jsantos
2025-05-02 10:39 sfernandez Status new => assigned
2025-05-02 10:39 sfernandez Target Version => 3.2.8
2025-05-03 13:44 jsantos Status assigned => resolved
2025-05-03 13:44 jsantos Resolution open => fixed
2025-05-03 13:44 jsantos Note Added: 0010569
2025-05-03 13:44 jsantos Fixed in Version => 3.2.8
2025-05-05 15:29 jsantos Note Added: 0010570
2025-05-05 15:30 jsantos Note Edited: 0010569