summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-06-23 17:28:58 +0200
committerDavid Tardon <dtardon@redhat.com>2013-06-24 13:03:53 +0000
commit9cca4617c4e020e5562b5023030da7418af67f55 (patch)
tree46d49eeac3b520f452b90e2490cc6e7b0aaf1b2e /forms
parentc95f654ed26a8b640fd678b9bd1514384ad27c80 (diff)
Use unsigned values in m_a(Converted)BoundValues
Values that come from the database are always signed (we inherit that from sdbc that inherits that from jdbc that inherits that from Java's type system that does not have unsigned values) So when using unsigned values, they always operator==-compare false! Change-Id: I604b04afa23ede835c1f3db1f8c1bdeafbfba7ea Reviewed-on: https://gerrit.libreoffice.org/4460 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ListBox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index ee7c32709561..68ca37e1b2b1 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -913,7 +913,7 @@ namespace frm
aBoundValue.fill( *aBoundColumn + 1, m_nBoundColumnType, xCursorRow );
else
// -1 because getRow() is 1-indexed, but ListBox positions are 0-indexed
- aBoundValue = static_cast<sal_uInt16>(xListCursor->getRow()-1);
+ aBoundValue = static_cast<sal_Int16>(xListCursor->getRow()-1);
aValueList.push_back( aBoundValue );
if ( bUseNULL && ( m_nNULLPos == -1 ) && aStr.isEmpty() )