[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sun Nov 15 16:15:09 UTC 2020
vcl/osx/a11ytextwrapper.mm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f7b4030014f98070feb923c1d650cb98049db968
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Nov 12 13:59:25 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Nov 15 17:14:18 2020 +0100
UNOIDL long vs. C++ sal_Int32 confustion
UNOIDL css.accessibility.XAccessibleText.getCaretPosition returns long, i.e.,
sal_Int32 in C++
Change-Id: Iaf6f6407f77a3d3fae7cd99e08c4cd43343a7af6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105742
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/osx/a11ytextwrapper.mm b/vcl/osx/a11ytextwrapper.mm
index a39037f079b1..cfd4ae7c1c22 100644
--- a/vcl/osx/a11ytextwrapper.mm
+++ b/vcl/osx/a11ytextwrapper.mm
@@ -77,7 +77,7 @@ using namespace ::com::sun::star::uno;
if ( start != end ) {
return [ NSValue valueWithRange: NSMakeRange ( start, end - start ) ]; // true selection
} else {
- long caretPos = [ wrapper accessibleText ] -> getCaretPosition();
+ sal_Int32 caretPos = [ wrapper accessibleText ] -> getCaretPosition();
if ( caretPos < 0 || caretPos > [ wrapper accessibleText ] -> getCharacterCount() ) {
return nil;
}
More information about the Libreoffice-commits
mailing list