[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - vcl/qt5

Katarina Behrens (via logerrit) logerrit at kemper.freedesktop.org
Thu May 23 17:07:54 UTC 2019


 vcl/qt5/Qt5Object.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 01b885420a227c2610f00cd5569212a507f48d27
Author:     Katarina Behrens <Katarina.Behrens at cib.de>
AuthorDate: Fri May 17 11:28:35 2019 +0200
Commit:     Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Thu May 23 19:07:02 2019 +0200

    tdf#124027: use ID of the embedded window
    
    after many trials and errors what LibO apparently expects here is
    the ID of QWindow parent of [embedded] system child window
    
    (the rest of the original commit bbe1ede0fada499fd49b60bdc7964e311b331454
    is not relevant for LibO 6.2)
    
    Change-Id: Ie4c6d14a50959c0fdd04e745918d4889c9da45ec
    Reviewed-on: https://gerrit.libreoffice.org/72458
    Tested-by: Jenkins
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
    Reviewed-on: https://gerrit.libreoffice.org/72769
    Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>
    Tested-by: Michael Weghorn <m.weghorn at posteo.de>

diff --git a/vcl/qt5/Qt5Object.cxx b/vcl/qt5/Qt5Object.cxx
index 3787bc715976..499cf190b4db 100644
--- a/vcl/qt5/Qt5Object.cxx
+++ b/vcl/qt5/Qt5Object.cxx
@@ -40,7 +40,7 @@ Qt5Object::Qt5Object(Qt5Frame* pParent, bool bShow)
         m_pQWidget->show();
 
     m_aSystemData.nSize = sizeof(SystemEnvData);
-    m_aSystemData.aWindow = pParent->GetQWidget()->winId();
+    m_aSystemData.aWindow = m_pQWindow->winId(); // ID of the embedded window
     m_aSystemData.aShellWindow = reinterpret_cast<sal_IntPtr>(this);
     //m_aSystemData.pSalFrame = this;
     //m_aSystemData.pWidget = m_pQWidget;


More information about the Libreoffice-commits mailing list