vcl/unx/generic/gdi/cairotextrender.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cdb098171a67f4859d2e97cb001528c97de74a76
Author:     Aron Budea <[email protected]>
AuthorDate: Tue Sep 26 00:09:52 2023 +0200
Commit:     Xisco Fauli <[email protected]>
CommitDate: Tue Sep 26 10:22:32 2023 +0200

    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 <[email protected]>
    (cherry picked from commit 5b52a7c3154f5263db82f19f7cc7d0e7b32da603)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157219
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx 
b/vcl/unx/generic/gdi/cairotextrender.cxx
index 719b5085fcc5..f0ab33c15f5d 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -443,7 +443,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);

Reply via email to