summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAron Budea <aron.budea@collabora.com>2023-09-26 00:09:52 +0200
committerAndras Timar <andras.timar@collabora.com>2023-09-27 21:11:35 +0200
commitee69342eba786deffaccf425c66a9ffd52e29c3f (patch)
tree6c8ade19799fafd3eff48e701be5192e830ff920 /vcl
parentdab567226d20912efdd5ed74b625c700266d2eac (diff)
tdf#152675 treat all cairo versions <= 1.17.8 the same (actually)
Use correct condition. Follow-up to 1dd357ccf7ca9edbe5f2ef60465c2559f678d306. Change-Id: Icc2d04c0023b0a6595ece89d389919f3821aacbc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157260 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit 5b52a7c3154f5263db82f19f7cc7d0e7b32da603) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157220
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index 5a54f8c9b08c..e7e57b42313e 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -321,7 +321,7 @@ void CairoTextRender::DrawTextLayout(const GenericSalLayout& rLayout, const SalG
// See: https://gitlab.freedesktop.org/cairo/cairo/-/issues/643
// b) tdf#152675 a similar report for cairo: 1.16.0-4ubuntu1,
// assume that everything <= 1.17.8 is unsafe to disable this
- if (cairo_version() <= CAIRO_VERSION_ENCODE(1, 17, 8))
+ if (cairo_version() > CAIRO_VERSION_ENCODE(1, 17, 8))
cairo_font_options_set_hint_metrics(pOptions, CAIRO_HINT_METRICS_OFF);
}
cairo_set_font_options(cr, pOptions);