diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-23 17:28:58 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-23 17:40:14 +0200 |
commit | 157a9da9340c5b03c598c29aa2a1fe5c709c66f3 (patch) | |
tree | f889e926859f4e4845ff70dc58fdc3a5a8c179de /forms/source | |
parent | 2d432035a82731163ce4c2a72f228e2c98c9f8f2 (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
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/ListBox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 2d09771252f7..b3726f3c7cb3 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -912,7 +912,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() ) |