summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2010-10-20 16:41:18 +0200
committerKurt Zenker <kz@openoffice.org>2010-10-20 16:41:18 +0200
commitde86e3362cf4fe6f65a66b01e74f19a8d33e289b (patch)
tree41820716d45017b1a4994e96c4080a6215587830
parent4b86c9e067ead8071de5b81936fd45f9d301b98a (diff)
parent877896a2231a61823464c546c61daeb8a42148a1 (diff)
CWS-TOOLING: integrate CWS dba33k
Notes
split repo tag: components_ooo/OOO330_m12 split repo tag: components_ooo/OOO330_m13 split repo tag: components_ooo/OOO330_m14 split repo tag: components_ooo/OOO330_m15 split repo tag: components_ooo/OOO330_m16 split repo tag: components_ooo/OOO330_m17 split repo tag: components_ooo/OOO330_m18
-rw-r--r--forms/source/component/ListBox.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index d2de4882dead..da335308933e 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -647,6 +647,8 @@ namespace frm
DBG_ASSERT( m_eListSourceType != ListSourceType_VALUELIST, "OListBoxModel::loadData: cannot load value list from DB!" );
DBG_ASSERT( !hasExternalListSource(), "OListBoxModel::loadData: cannot load from DB when I have an external list source!" );
+ const sal_Int16 nNULLPosBackup( m_nNULLPos );
+ const sal_Int32 nBoundColumnTypeBackup( m_nBoundColumnType );
m_nNULLPos = -1;
m_nBoundColumnType = DataType::SQLNULL;
@@ -782,6 +784,8 @@ namespace frm
// if none of the settings of the row set changed, compared to the last
// invocation of loadData, then don't re-fill the list. Instead, assume
// the list entries are the same.
+ m_nNULLPos = nNULLPosBackup;
+ m_nBoundColumnType = nBoundColumnTypeBackup;
return;
}
xListCursor.reset( m_aListRowSet.execute() );