vcl/source/gdi/print3.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 51c8969ff67c30db320a8835089570a3389c82c3
Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
Date:   Mon Apr 16 13:02:42 2018 +0200

    Set parent window for print dialog
    
    In embedded LO this dialog sometimes shows up in background.
    
    Change-Id: I9b7f423aaa6b2bbe915398287a5f3b955af930b4
    Reviewed-on: https://gerrit.libreoffice.org/52962
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de>

diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index 59d2efd26675..48647b8d4921 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -473,7 +473,8 @@ bool 
Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
     {
         try
         {
-            ScopedVclPtrInstance< PrintDialog > aDlg( nullptr, xController );
+            VclPtr<vcl::Window> xParent = xController->getWindow();
+            ScopedVclPtrInstance< PrintDialog > aDlg( xParent, xController );
             if( ! aDlg->Execute() )
             {
                 xController->abortJob();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to