Created attachment 171319 [details] Contains macro with ViewCursor Open attached document. It contains a macro to investigate the ViewCursor. Problems: (A) The method gotoEndOfLine() does not set the cursor at the end of the line. (B) The reported position is not "the cursor's coordinates relative to the top left position of the first page of the document." as said in the API of XTextViewCursor. It seems to be relative to the top left of the work area. Make the window wider to get free area left of the page and vary it. You get different position values.
(In reply to Regina Henschel from comment #0) > Created attachment 171319 [details] > Contains macro with ViewCursor > > Open attached document. It contains a macro to investigate the ViewCursor. > > Problems: > > (A) The method gotoEndOfLine() does not set the cursor at the end of the > line. For me, it sets the cursor to the end of the first line (not end of paragraph). I also tested with 7.2 to confirm there was no change in behaviour. Where does the cursor land for you? > (B) The reported position is not "the cursor's coordinates relative to the > top left position of the first page of the document." as said in the API of > XTextViewCursor. It seems to be relative to the top left of the work area. > Make the window wider to get free area left of the page and vary it. You get > different position values. I confirm this variance. Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 216493f32236f0086f4c5b527deb18b020b0ed1c CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Jumbo
(In reply to Buovjaga from comment #1) > (In reply to Regina Henschel from comment #0) > > Created attachment 171319 [details] > > Contains macro with ViewCursor > > > > Open attached document. It contains a macro to investigate the ViewCursor. > > > > Problems: > > > > (A) The method gotoEndOfLine() does not set the cursor at the end of the > > line. > > For me, it sets the cursor to the end of the first line (not end of > paragraph). I also tested with 7.2 to confirm there was no change in > behaviour. > > Where does the cursor land for you? It sets it before the first character in the second line of the page. But API description is "moves the cursor to the end of the current line." To test it you need to comment out the second part of the macro, so that the cursor is only affected by the gotoEndOfLine() method. Tested in Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community Build ID: a3988b2d147a2442b348d58b79dbd6e71472b7af CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL
(In reply to Regina Henschel from comment #2) > It sets it before the first character in the second line of the page. But > API description is "moves the cursor to the end of the current line." > To test it you need to comment out the second part of the macro, so that the > cursor is only affected by the gotoEndOfLine() method. Ok, I can repro like that
Dear Regina Henschel, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
The problem is still as described in Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: d76f1877f699c91f5e4a020641c6d65064bfb997 CPU threads: 32; OS: Windows 10.0 Build 22631; UI render: default; VCL: win Locale: de-DE (de_DE); UI: en-US Calc: threaded