From f198f700591f968226a1b8e4a0ad574f37dab3f8 Mon Sep 17 00:00:00 2001 From: SimplestStudio Date: Tue, 14 May 2024 14:36:56 +0300 Subject: [PATCH] [linux] fix bug 67667 --- win-linux/src/windows/ceditorwindow_p.h | 2 +- win-linux/src/windows/cmainwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/win-linux/src/windows/ceditorwindow_p.h b/win-linux/src/windows/ceditorwindow_p.h index e64edf34e..133e2c2bc 100644 --- a/win-linux/src/windows/ceditorwindow_p.h +++ b/win-linux/src/windows/ceditorwindow_p.h @@ -653,7 +653,7 @@ public: break; } - CEditorTools::print({m_panel->cef(), pContext, &page_ranges, window->handle()}); + CEditorTools::print({m_panel->cef(), pContext, &page_ranges, parent}); } pContext->Release(); diff --git a/win-linux/src/windows/cmainwindow.cpp b/win-linux/src/windows/cmainwindow.cpp index 20e9f2f72..a76340f41 100644 --- a/win-linux/src/windows/cmainwindow.cpp +++ b/win-linux/src/windows/cmainwindow.cpp @@ -1232,7 +1232,7 @@ void CMainWindow::onDocumentPrint(void * opts) break; } - CEditorTools::print({pView, pContext, &page_ranges, this}); + CEditorTools::print({pView, pContext, &page_ranges, parent}); } pContext->Release();