[Libreoffice-bugs] [Bug 111842] New: Strange behavior when editing measurement fields within Draw

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 16 05:56:50 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111842

            Bug ID: 111842
           Summary: Strange behavior when editing measurement fields
                    within Draw
           Product: LibreOffice
           Version: 5.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Extensions
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: kholloway at geckosoftware.com.au

Description:
When editing a measurement field (horizontal/vertical/width/height), the
automatic insertion/deletion of the thousands separator causes the point of
editing to move.

For example, assume a measurement field has:
1,234.00 mm
and the cursor is positioned to the left of the decimal point.  If I press
backspace once (to remove the digit 4), the result is:
123.00 mm
but the cursor is now positioned to the right of the decimal point.

What is happening is:
- My backspace removes the 4, and I would expect the cursor to remain between
the 3 and the decimal point.
- But, Draw is automatically removing the thousands separator.  This makes the
input field one character shorter--without adjusting the position of the
cursor.
- With the input field one character shorter, and the cursor in the same
position it was after the removing the 4, the cursor ends up one character to
the right of where it was. 

Steps to Reproduce:
1.  Enter an value in a measurement field.  The amount should be 1,234.00 mm.
2.  Position the cursor to the left of the decimal point.
3.  Press backspace once, to remove the 4 digit.


Actual Results:  
The result is 123.00 mm, but with cursor positioned to the right of the decimal
point.

The cursor represents the editing position of the field, and should not move
just because a character has been deleted.

It is not possible to delete multiple characters without re-positioning the
cursor.

The unusual cursor movement also occurs when characters are entered, and Draw
automatically inserts a thousands separator.

Expected Results:
The same result of 123.00 mm, but with the cursor positioned to the left of the
decimal point (between the 3 and the decimal point).  



Reproducible: Always

User Profile Reset: No

Additional Info:
What is happening is:
- My backspace removes the 4, and I would expect the cursor to remain between
the 3 and the decimal point.
- But, Draw is automatically removing the thousands separator.  This makes the
input field one character shorter--without adjusting the position of the
cursor.
- With the input field one character shorter, and the cursor in the same
position it was after the removing the 4, the cursor ends up one character to
the right of where it was. 

The unusual cursor movement also occurs when characters are entered, and Draw
automatically inserts a thousands separator.


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101
Firefox/54.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170816/78df5b0b/attachment.html>


More information about the Libreoffice-bugs mailing list