Fix for the old dependency code in the CI
All checks were successful
Build ptprnt / build (push) Successful in 2m31s

This commit is contained in:
2024-04-28 20:49:10 +02:00
parent f702ec5473
commit 77c6b7bc7b

View File

@@ -103,7 +103,10 @@ bool Label::create(const std::string& labelText) {
case HAlignPosition::JUSTIFY: case HAlignPosition::JUSTIFY:
pango_layout_set_alignment(mPangoLyt, PANGO_ALIGN_LEFT); // not sure if needed pango_layout_set_alignment(mPangoLyt, PANGO_ALIGN_LEFT); // not sure if needed
pango_layout_set_justify(mPangoLyt, true); 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); pango_layout_set_justify_last_line(mPangoLyt, true);
#endif
break; break;
case HAlignPosition::CENTER: case HAlignPosition::CENTER:
[[fallthrough]]; [[fallthrough]];