[Libreoffice-commits] core.git: vcl/source
Samuel Mehrbrodt
Samuel.Mehrbrodt at cib.de
Tue Apr 17 06:26:20 UTC 2018
vcl/source/gdi/print3.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 51c8969ff67c30db320a8835089570a3389c82c3
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at 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 <ci at libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at 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();
More information about the Libreoffice-commits
mailing list