Bug 87413 - cursor placement in case of empty cross reference in a table cell
Summary: cursor placement in case of empty cross reference in a table cell
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) beta1
Hardware: Other All
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2014-12-17 13:06 UTC by Andras Timar
Modified: 2017-09-29 08:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

example (28.40 KB, application/vnd.oasis.opendocument.text)
2014-12-17 13:06 UTC, Andras Timar
example 2 (11.10 KB, application/vnd.oasis.opendocument.text)
2015-07-21 18:08 UTC, Gordo

Note You need to log in before you can comment on or make changes to this bug.
Description Andras Timar 2014-12-17 13:06:10 UTC
Created attachment 110951 [details]

See empty reference in the attached document. Cursor is displayed before empty reference rather than after it even though it requires backspace to delete it.

Cursor should be after empty reference.
Comment 1 Buovjaga 2015-01-16 16:34:41 UTC
Well we can delete it with the delete button, too.
Comment 2 Gordo 2015-07-21 18:08:14 UTC
Created attachment 117367 [details]
example 2

Turn Non-printing Characters on.
Turn Field Shadings on.

1. Open example 2 attachment.
2. Tools → Outline Numbering → Change Level 1 Number to “None”.
3. Place cursor after empty cross reference in the first example.
Cursor is before reference.
4. Press Backspace.
Reference is deleted.
5. Undo deletion.
6. Place cursor after empty cross reference in the first example. Arrow left once and now it is really in front of the reference.
7. Place cursor after empty cross reference in the second example.
Cursor is before reference and field shading extends over space before reference.
8. Click on the empty cross reference in the third example.
Cursor is moved to the chapter heading “Yet Another Chapter”.  Having the period (probably anything) after the empty reference probably allows this to happen.
9. Hover over each empty field.
Tooltips display for the first and third field.

While all of this is inconsistent behaviour, I do not think there is much of a bug because empty cross references are only ever going to be a temporary state.  The user might decide against outline numbering so turns it off and then adjusts the fields to point to the headings instead of numbered paragraphs.  The only issue is when the user tries to delete the empty field in the table cell.  If the cursor is placed after the field even though it is displayed in front of the field then pressing Delete will (correctly) not delete it.

Windows Vista 64
Build ID: 2c39ebcf046445232b798108aa8a7e7d89552ea8
Comment 3 Xisco Faulí 2017-01-31 00:03:01 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2017-08-30 19:27:31 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2017-09-29 08:54:28 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team