tdf#165061 CairoSDPR: regression: Fix RTL usage

See comments in task, for now disable using SDPR when RTL is
enabled.

Change-Id: I9dabe2324fb9e6b190ebb3851dc73b2c7dacf84d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181604
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
This commit is contained in:
Armin Le Grand (Collabora)
2025-02-13 11:44:13 +01:00
committed by Armin Le Grand
parent fd9c6cb835
commit 8acd6b515e

View File

@@ -108,7 +108,10 @@ std::unique_ptr<BaseProcessor2D> createPixelProcessor2DFromOutputDevice(
// possibility to deactivate for easy test/request testing
static bool bUsePrimitiveRenderer(nullptr == std::getenv("DISABLE_SYSTEM_DEPENDENT_PRIMITIVE_RENDERER"));
if (bUsePrimitiveRenderer)
if (bUsePrimitiveRenderer
// tdf#165061 do not use SDPR when RTL is enabled, SDPR is designed
// for rendering EditViews and does not support RTL (yet?)
&& !rTargetOutDev.IsRTLEnabled())
{
SystemGraphicsData aData(rTargetOutDev.GetSystemGfxData());