Bug 146775 - Read Only Message Appears at Top Left instead of Center of Screen
Summary: Read Only Message Appears at Top Left instead of Center of Screen
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.4.1 release
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-15 03:58 UTC by Lucas J
Modified: 2022-01-15 18:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Top left of screen (25.30 KB, image/png)
2022-01-15 03:59 UTC, Lucas J
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas J 2022-01-15 03:58:26 UTC
Description:
When I open a read-only document, the message appears at the top left of the screen instead of in the center. See image for details.

Steps to Reproduce:
1.Open read only document
2.
3.

Actual Results:
Dialog at top left of screen

Expected Results:
Should be in center of screen


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.4.1 / LibreOffice Community
Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Lucas J 2022-01-15 03:59:03 UTC
Created attachment 177558 [details]
Top left of screen
Comment 2 Buovjaga 2022-01-15 08:54:13 UTC
How do you get this separate dialog? I only get an infobar integrated into the main UI. Tried with 7.2.4 and gtk3.
Comment 3 Buovjaga 2022-01-15 09:00:26 UTC
Nevermind, I did not expect that the change was between minor versions 7.2.4 and 7.2.5: bug 143971
Comment 4 Lucas J 2022-01-15 18:05:40 UTC
OK, so when LibreOffice is already open, it displays in center of screen. On the other hand, when LibreOffice is not running, and you download a read-only document from Firefox and open LibreOffice with the read only file as an argument, this is when the bug happens. I am willing to fix this bug. I simply cannot find where the dialog is created in the code. I was searching for this dialog for hours. If you know where it's located, this might give me a hint on how to fix it.
Comment 5 Lucas J 2022-01-15 18:11:17 UTC
Perhaps I can't find the dialog in the code since it was removed? Is this what you mean by saying that this was changed between minor versions?
Comment 6 Buovjaga 2022-01-15 18:45:05 UTC
(In reply to Lucas J from comment #5)
> Perhaps I can't find the dialog in the code since it was removed? Is this
> what you mean by saying that this was changed between minor versions?

Yes, see the commit for bug 143971 https://git.libreoffice.org/core/commit/f9ab31366dbe466ef739015734bb5b6a1a0deca4

There is nothing for you to do. You can update to 7.2.5.

Of course, you are very welcome to get into LibreOffice development. If you want, you can email me and we can schedule a chat.