uui/source/passworddlg.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5f30114c25f233fee2760645e3b1f194c8157438
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Apr 18 16:21:26 2019 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Apr 18 22:29:17 2019 +0200

    Resolves: tdf#115964 force password dialog to center on parent size request
    
    this is similar to...
    
    commit d17d9500a23705a315992ff42cb7c449894fc2ce
    Date:   Tue Apr 16 14:49:46 2019 +0100
    
        tdf#124597 template select dialog launched before parent gets final size
    
    where the dialog is launched before its parent window has got to its final 
size
    
    Change-Id: I0f54a8da482ed75fa939e230b69c0eb918782bf5
    Reviewed-on: https://gerrit.libreoffice.org/70943
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/uui/source/passworddlg.cxx b/uui/source/passworddlg.cxx
index 9229f9ec9a46..ffa2897b24dc 100644
--- a/uui/source/passworddlg.cxx
+++ b/uui/source/passworddlg.cxx
@@ -41,6 +41,9 @@ PasswordDialog::PasswordDialog(weld::Window* pParent,
     , aPasswdMismatch(Translate::get(STR_PASSWORD_MISMATCH, rLocale))
     , rResLocale(rLocale)
 {
+    // tdf#115964 we can be launched before the parent has resized to its 
final size
+    m_xDialog->set_centered_on_parent_geometry_request();
+
     if( nDialogMode == task::PasswordRequestMode_PASSWORD_REENTER )
     {
         const char* pOpenToModifyErrStrId = bOpenToModify ? 
STR_ERROR_PASSWORD_TO_MODIFY_WRONG : STR_ERROR_PASSWORD_TO_OPEN_WRONG;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to