tdf#152675 treat all cairo versions <= 1.17.8 the same (actually)

Use correct condition.

Follow-up to 1dd357ccf7.

Change-Id: Icc2d04c0023b0a6595ece89d389919f3821aacbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157260
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Aron Budea
2023-09-26 00:09:52 +02:00
committed by Caolán McNamara
parent c3e654ad37
commit 5b52a7c315

View File

@@ -445,7 +445,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);