[Libreoffice-commits] core.git: vcl/unx
Justin Luth
justin_luth at sil.org
Mon Jun 1 00:58:30 PDT 2015
vcl/unx/gtk/window/gtksalframe.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c9fd4aa8aa969ef2b669813acee15d6efcf1ecde
Author: Justin Luth <justin_luth at sil.org>
Date: Sat May 30 11:20:20 2015 +0300
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 at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index 239514e..e981e05 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));
More information about the Libreoffice-commits
mailing list