vcl/unx/gtk4/gtkaccessibletext.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8e376d5081cdeef454258f17f3e60ed5836c66ff
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri Aug 9 10:53:55 2024 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Aug 12 13:09:55 2024 +0200

    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 <r...@debian.org>
    Tested-by: Jenkins
    Tested-by: René Engelhard <r...@debian.org>
    (cherry picked from commit 7d9acc2862d0c279dbc1b2641a5f6f825eba174f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171683
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

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,

Reply via email to