diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-09 10:53:55 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2024-08-12 13:09:55 +0200 |
commit | 8e376d5081cdeef454258f17f3e60ed5836c66ff (patch) | |
tree | f448764b135398b9292ba7837fb7983572b1b41d /vcl | |
parent | 116f3556716b1ba24682bf7d3853dae57954dd20 (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>
(cherry picked from commit 7d9acc2862d0c279dbc1b2641a5f6f825eba174f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171683
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'vcl')
-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, |