Bug 133424 - 'Go to Page' not working if cursor is in a comment
Summary: 'Go to Page' not working if cursor is in a comment
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 136789 (view as bug list)
Depends on:
Blocks: Writer-Comments
  Show dependency treegraph
 
Reported: 2020-05-26 21:00 UTC by Chris
Modified: 2022-09-20 06:00 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Visual description of the bug on Windows (319.57 KB, image/png)
2020-06-02 19:02 UTC, Emil
Details
Visual description of the bug on macOS (789.00 KB, image/png)
2020-06-02 19:02 UTC, Emil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2020-05-26 21:00:28 UTC
Description:
With Track Changes on, the "Go To" page feature (triggered by clicking on the page number in the lower/left corner) will not jump to a different page when the editing cursor is in a comment box.  Instead, the current page is re-selected, usually resulting in a slight scrolling adjustment.  

If you reposition the cursor by clicking in the document body, then Go To page will work.

Steps to Reproduce:
1.Track Changes on
2.On a page > 1, add a comment (right-click, then "Comment")
3.While still editing comment (cursor in comment box), use "Go To" modal dialog (click on page number in lower/left corner of editor)
4. Enter page 1 (or any page different than the current)

Actual Results:
The current page just readjusts scrolling to position view at the top of the page.

Expected Results:
The editor should show the page seleted in "Go To" modal dialog.


Reproducible: Always


User Profile Reset: No



Additional Info:
When cursor is in the document body (not in a comment), "Go To" works correctly.
Comment 1 Dieter 2020-05-28 12:27:17 UTC
Thank you for reporting the bug. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 2 Emil 2020-06-02 19:00:55 UTC
Hello, 

I want to provide additional information about this bug report. The bug is easy to reproduce, on multiple devices or versions of the software (including Version: 7.0.0.0.beta1):

Create or open a multi-page document (at least 2 pages)
Add a comment on any of the pages (for ex.: on Page 1, select a word -> Right Click -> Insert a Comment)
Optional: enter a comment in the Comment field (or just keep the active cursor there)
Open Go to Page modal dialog (e.g. Go to Status Bar -> Click on the page number (bottom left) -> opens the Go to Page modal dialog)
In the Go to Page modal dialog, enter a page number different then the one you currently are focused on -> OK

Actual Results:
The current page just readjusts scrolling to position view at the top of the page.

Expected Results:
The editor should focus / show the page selected in Go to Page modal dialog. The cursor should be on the first position of the selected page. 

Reproducible: Always
User Profile Reset: No

Additional info: 
There is no need for the Track Changes options to be on. The bug seems to be reproducible on various devices and software versions (including Version: 7.0.0.0.beta1). 

In order to have the Go to Page function work, the user needs to click outside the comment (in the body of the document) and only then use Go to Page effectively.
This behaviour would be inconsistent with other functions that can be used while commenting (e.g. Find… / Find & Replace…) 

The expected result is consistent in other similar software programs. 

Tested with: 

Version: 7.0.0.0.beta1 (x64)
Build ID: 94f789cbb33335b4a511c319542c7bdc31ff3b3c
CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: CL

and 

Version: 6.4.4.2
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU threads: 4; OS: Mac OS X 10.15.4; UI render: default; VCL: osx; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 3 Emil 2020-06-02 19:02:08 UTC
Created attachment 161545 [details]
Visual description of the bug on Windows
Comment 4 Emil 2020-06-02 19:02:37 UTC
Created attachment 161546 [details]
Visual description of the bug on macOS
Comment 5 Chris 2020-06-02 19:10:59 UTC
(In reply to Emil from comment #4)
> Created attachment 161546 [details]
> Visual description of the bug on macOS

Emil, Thanks for the confirmation, much-improved description, testing, and visuals!
Comment 6 Dieter 2020-06-03 07:32:27 UTC
(In reply to Emil from comment #2)
> Hello, 
> 
> I want to provide additional information about this bug report. The bug is
> easy to reproduce, on multiple devices or versions of the software
> (including Version: 7.0.0.0.beta1):

Emil, thanks for confimring the bug. Please change bug status to NEW, if you're able to reproduce a bug. Thanks

=> NEW, because of comment 2
Comment 7 sdc.blanco 2020-09-19 10:18:49 UTC
*** Bug 136789 has been marked as a duplicate of this bug. ***
Comment 8 sdc.blanco 2020-09-19 10:22:35 UTC
Changing earliest version -- based on extensive testing by Telesto in Bug 136789 (which also has a test document, with instructions), and note that Telesto also confirms in 7.1.0.0.alpha.
Comment 9 QA Administrators 2022-09-20 03:33:46 UTC Comment hidden (obsolete)
Comment 10 Dieter 2022-09-20 06:00:51 UTC
Bug disappeard in

Version: 7.4.1.2 (x64) / LibreOffice Community
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

=> RESOLVED WORKSFORME