summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2015-05-30 11:20:20 +0300
committerNoel Grandin <noelgrandin@gmail.com>2015-06-01 07:58:09 +0000
commitc9fd4aa8aa969ef2b669813acee15d6efcf1ecde (patch)
tree4b29f79610dfb603ea75a76cb398d669be0bbd4b /vcl
parent8c5471c3a625c42523b144cf8d1dddf75f4a2746 (diff)
getCaretPosition() returns a signed int, not an unsigned one
Making all references to getCaretPosition() consistent in this file, since I had to change it elsewhere. Change-Id: I2046370e9ca7a89e3dc4fa446311bc1575292422 Reviewed-on: https://gerrit.libreoffice.org/15991 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/window/gtksalframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index 239514e537c6..e981e053bd0c 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -4490,7 +4490,7 @@ gboolean GtkSalFrame::IMHandler::signalIMRetrieveSurrounding( GtkIMContext* pCon
uno::Reference<accessibility::XAccessibleEditableText> xText = lcl_GetxText(pFocusWin);
if (xText.is())
{
- sal_uInt32 nPosition = xText->getCaretPosition();
+ sal_Int32 nPosition = xText->getCaretPosition();
OUString sAllText = xText->getText();
OString sUTF = OUStringToOString(sAllText, RTL_TEXTENCODING_UTF8);
OUString sCursorText(sAllText.copy(0, nPosition));