From 77c6b7bc7bca710384ef5ab0a874253ee66909cc Mon Sep 17 00:00:00 2001 From: Moritz Martinius Date: Sun, 28 Apr 2024 20:49:10 +0200 Subject: [PATCH] Fix for the old dependency code in the CI --- src/graphics/Label.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graphics/Label.cpp b/src/graphics/Label.cpp index 070c895..6f9f584 100644 --- a/src/graphics/Label.cpp +++ b/src/graphics/Label.cpp @@ -103,7 +103,10 @@ bool Label::create(const std::string& labelText) { case HAlignPosition::JUSTIFY: pango_layout_set_alignment(mPangoLyt, PANGO_ALIGN_LEFT); // not sure if needed pango_layout_set_justify(mPangoLyt, true); +// only enabled in pango 1.50 and greater +#if PANGO_VERSION_MAJOR >= 1 && PANGO_VERSION_MINOR >= 50 pango_layout_set_justify_last_line(mPangoLyt, true); +#endif break; case HAlignPosition::CENTER: [[fallthrough]];