diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-09 10:53:55 +0200 |
---|---|---|
committer | René Engelhard <rene@debian.org> | 2024-08-10 09:26:28 +0200 |
commit | 7d9acc2862d0c279dbc1b2641a5f6f825eba174f (patch) | |
tree | 93a750eb6786e0cc769f9138004504ea72318b50 | |
parent | 183f4e8f1b8dc405e3febd2f0a82769403730a4d (diff) |
gtk4 a11y: Fix 32-bit build
Take over the fix that Ubuntu has as a patch in its
LibreOffice package.
Thanks to Rene Engelhard for pointing it out on IRC:
[10:43] <_rene_> michaelweghorn: see armhf and i386 at https://buildd.debian.org/status/package.php?p=libreoffice&suite=experimental. gtk4 and 32bit
[10:44] <_rene_> michaelweghorn: i saw https://git.launchpad.net/~libreoffice/ubuntu/+source/libreoffice/commit/?h=wip/oracular-24.8 in ubuntu for that somrhow only mentioning armhf
Change-Id: I7666fb56f5e36195d5b320689bed6cfda2140e38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171687
Reviewed-by: René Engelhard <rene@debian.org>
Tested-by: Jenkins
Tested-by: René Engelhard <rene@debian.org>
-rw-r--r-- | vcl/unx/gtk4/gtkaccessibletext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk4/gtkaccessibletext.cxx b/vcl/unx/gtk4/gtkaccessibletext.cxx index 05a8a2fe6ba7..6925b7ba6d56 100644 --- a/vcl/unx/gtk4/gtkaccessibletext.cxx +++ b/vcl/unx/gtk4/gtkaccessibletext.cxx @@ -102,7 +102,7 @@ static unsigned int lo_accessible_text_get_caret_position(GtkAccessibleText* sel if (!xText.is()) return 0; - return std::max(0, xText->getCaretPosition()); + return std::max<sal_Int32>(0, xText->getCaretPosition()); } static gboolean lo_accessible_text_get_selection(GtkAccessibleText* self, gsize* n_ranges, |