summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-01-14 11:59:43 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2022-01-24 12:17:07 +0100
commite064a2a1e82e913c49312706cd52736fa6a4f994 (patch)
treef236e72c36f40aa8eb8d6b2f3413b9923ac401f3
parente82f8fffd32dcdfd28a49e577770b5a318347e96 (diff)
RTL: lok: draw mirrored native widgets from file definition
Change-Id: I66318e4cb605a1882f557e53c03185cc767683b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128394 Reviewed-by: Henry Castro <hcastro@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128837 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--vcl/source/gdi/salgdilayout.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index b22d4594cafe..34f54a8ce870 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -31,6 +31,7 @@
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <FileDefinitionWidgetDraw.hxx>
#include <rtl/math.hxx>
+#include <comphelper/lok.hxx>
// The only common SalFrame method
@@ -752,7 +753,10 @@ bool SalGraphics::DrawNativeControl( ControlType nType, ControlPart nPart, const
if (aControlRegion.IsEmpty() || aControlRegion.GetWidth() <= 0 || aControlRegion.GetHeight() <= 0)
return bRet;
- if( (m_nLayout & SalLayoutFlags::BiDiRtl) || rOutDev.IsRTLEnabled() )
+ bool bLayoutRTL = true && (m_nLayout & SalLayoutFlags::BiDiRtl);
+ bool bDevRTL = rOutDev.IsRTLEnabled();
+ bool bIsLOK = comphelper::LibreOfficeKit::isActive();
+ if( (bLayoutRTL || bDevRTL) && !bIsLOK )
{
mirror(aControlRegion, rOutDev);
std::unique_ptr< ImplControlValue > mirrorValue( aValue.clone());