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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Aug 20 23:52:01 UTC 2017


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

--- Comment #2 from Kevin Holloway <kholloway at geckosoftware.com.au> ---
Step by step:

1. Open a new LibreOffice Draw document.

2. Add a rectangle.  After you have created this, make sure it is selected.

3. In the properties of the rectangle, under "Position and Size", there are
four measurements: Horizontal, Vertical, Width and Height. (I have to scroll to
the bottom of the properties to see these).

4.  Highlight the "Width" field and remove its contents.  (I.e., click on the
"Width" field, enter ctrl-A, and then press backspace.  This will clear out the
width field. The cursor will remain in the "Width" field.

5.  Press the "1" key, and wait.  The field will change to "1.00 mm" with
cursor between the 1 and the decimal digit.  

6.  Press "2" and then "3".  The field will change to "123.00 mm" with the
cursor between the 3 and the decimal digit.  So far, everything is correct.

7.  Press "4" and wait.  The field will change to "1,234.00 mm" but the cursor
is between the 3 and 4.  I.e., "1,23|4.00" where | is the cursor.  This is not
right.  The cursor should be between the 4 and the decimal point.

The problem occurs because the thousands separator (the comma) is being added,
automatically, and changing the position of the cursor in the process.  The
same problem occurs when a thousands separator is automatically removed.

Consider the following.  Assume I want to enter 1236, but entered 1234 by
mistake.  The normal correction would be "backspace" (to remove the last
entered digit, the 4) and then the correct digit, 6.  But, in Draw the
following happens:

a) I enter 1234.  The width field shows "1,23|4.00 mm" (where | is the cursor).
b) Press backspace.  The 3 is removed.
c) Press 6, and the width field shows "1,26|4.00 mm".

-- 
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/20170820/bf995b61/attachment-0001.html>


More information about the Libreoffice-bugs mailing list