Date: Wed, 17 Feb 2021 15:06:12 +0000 (UTC) From: Dima Panov <fluffy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r565507 - in head/editors/libreoffice: . files Message-ID: <202102171506.11HF6CcU069262@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fluffy Date: Wed Feb 17 15:06:12 2021 New Revision: 565507 URL: https://svnweb.freebsd.org/changeset/ports/565507 Log: editors/libreoffice: resurrect deleted by mistake patch for qt5-cairo engine to fix CJK fonts rendering in menus and dialogs PR: 253371, 253579 MFH: 2021Q1 Pointy hat to: fluffy Added: head/editors/libreoffice/files/patch-vcl_qt5_Qt5Instance.cxx - copied unchanged from r564005, head/editors/libreoffice/files/patch-vcl_qt5_Qt5Instance.cxx Modified: head/editors/libreoffice/Makefile Modified: head/editors/libreoffice/Makefile ============================================================================== --- head/editors/libreoffice/Makefile Wed Feb 17 14:52:31 2021 (r565506) +++ head/editors/libreoffice/Makefile Wed Feb 17 15:06:12 2021 (r565507) @@ -1,5 +1,5 @@ # $FreeBSD$ -PORTREVISION= 1 +PORTREVISION= 2 .include "${.CURDIR}/Makefile.common" Copied: head/editors/libreoffice/files/patch-vcl_qt5_Qt5Instance.cxx (from r564005, head/editors/libreoffice/files/patch-vcl_qt5_Qt5Instance.cxx) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/libreoffice/files/patch-vcl_qt5_Qt5Instance.cxx Wed Feb 17 15:06:12 2021 (r565507, copy of r564005, head/editors/libreoffice/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<Qt5Frame*>(pParent)); +- return new Qt5Frame(static_cast<Qt5Frame*>(pParent), nStyle, m_bUseCairo); ++ SalFrame* pRet(nullptr); ++ bool bUseCairo = m_bUseCairo; ++ RunInMainThread([&pRet, pParent, nStyle, bUseCairo]() { ++ pRet = new Qt5Frame(static_cast<Qt5Frame*>(pParent), nStyle, bUseCairo); ++ }); ++ assert(pRet); ++ return pRet; + } + + void Qt5Instance::DestroyFrame(SalFrame* pFrame) +@@ -420,7 +426,7 @@ Qt5Instance::createPicker(css::uno::Reference<css::uno + { + SolarMutexGuard g; + Qt5FilePicker* pPicker; +- RunInMainThread([&, this]() { pPicker = createPicker(context, eMode); }); ++ RunInMainThread([&pPicker, this, context, eMode]() { pPicker = createPicker(context, eMode); }); + assert(pPicker); + return pPicker; + } +@@ -624,7 +630,7 @@ std::unique_ptr<QApplication> 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<char* []> pFakeArgv; + std::unique_ptr<int> pFakeArgc;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102171506.11HF6CcU069262>