https://bugs.documentfoundation.org/show_bug.cgi?id=160807
--- Comment #3 from jhertel <[email protected]> --- I have not set up the build environment, but I think I located the error: In the file core/uui/source/passworddlg.cxx, line 45 (which I located on the read-only Github mirror because I could search there, at https://github.com/LibreOffice/core/blob/d80dd99db9d8c78fa4b9b4a2be4bc13721df7469/uui/source/passworddlg.cxx#L45), the position of the dialog is set as centered. But after that, the title of the dialog is changed in line 77 and 88: 77 m_xDialog->set_title(aTitle); 88 m_xDialog->set_title(aTitle + " - " + aFileName); So I would think that moving line 44+45 (line 45 including its comment) to after line 88 would solve the problem. Then it would calculate the proper centered x position from the actual title of the dialog. If the x position is calculated before the title is set, the calculation does not take into account the actual dialog title, therefore misplacing the dialog horizontally as if there were no title or just the default title (a long title expands the dialog width). This has not been verified, since I don't have the build environment set up (it's a bit of hazzle to set up in Windows). But maybe someone with the build setup could check this, or at least this bug could be set as a simple task for beginners: Make the suggested change and see if it solves the problem. -- You are receiving this mail because: You are the assignee for the bug.
