From 7058ec053bc486a10a0d4141dadd249f647ef721 Mon Sep 17 00:00:00 2001 From: Dima Panov Date: Sun, 16 Aug 2020 12:18:17 +0000 Subject: editors/libreoffice6: - repocopy from editors/libreoffice - add i18n option (off by default to mimic classic behaviour) - register conflicts with main libreoffice port --- .../files/patch-vcl_qt5_Qt5Instance.cxx | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 editors/libreoffice6/files/patch-vcl_qt5_Qt5Instance.cxx (limited to 'editors/libreoffice6/files/patch-vcl_qt5_Qt5Instance.cxx') diff --git a/editors/libreoffice6/files/patch-vcl_qt5_Qt5Instance.cxx b/editors/libreoffice6/files/patch-vcl_qt5_Qt5Instance.cxx new file mode 100644 index 000000000000..aad13b769fb4 --- /dev/null +++ b/editors/libreoffice6/files/patch-vcl_qt5_Qt5Instance.cxx @@ -0,0 +1,35 @@ +--- vcl/qt5/Qt5Instance.cxx.orig 2020-05-13 11:19:20 UTC ++++ vcl/qt5/Qt5Instance.cxx +@@ -261,7 +261,13 @@ SalFrame* Qt5Instance::CreateChildFrame(SystemParentDa + SalFrame* Qt5Instance::CreateFrame(SalFrame* pParent, SalFrameStyleFlags nStyle) + { + assert(!pParent || dynamic_cast(pParent)); +- return new Qt5Frame(static_cast(pParent), nStyle, m_bUseCairo); ++ SalFrame* pRet(nullptr); ++ bool bUseCairo = m_bUseCairo; ++ RunInMainThread([&pRet, pParent, nStyle, bUseCairo]() { ++ pRet = new Qt5Frame(static_cast(pParent), nStyle, bUseCairo); ++ }); ++ assert(pRet); ++ return pRet; + } + + void Qt5Instance::DestroyFrame(SalFrame* pFrame) +@@ -420,7 +426,7 @@ Qt5Instance::createPicker(css::uno::Reference Qt5Instance::CreateQAppl + extern "C" { + VCLPLUG_QT5_PUBLIC SalInstance* create_SalInstance() + { +- static const bool bUseCairo = (nullptr != getenv("SAL_VCL_QT5_USE_CAIRO")); ++ static const bool bUseCairo = true; // (nullptr != getenv("SAL_VCL_QT5_USE_CAIRO")); + + std::unique_ptr pFakeArgv; + std::unique_ptr pFakeArgc; -- cgit v1.2.3