summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-06-27 17:14:16 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-06-28 12:56:27 +0000
commit60d4d5a4ec70186f64b12ebb485428e905283785 (patch)
treeecbc33c26111ba3dcf709fdf4d8ee1c6ef918ec0 /forms
parent3d736faef1cfc619f965d80c0eb112dc7c7426e3 (diff)
fdo#66171 ListBox correctly save empty or zero BoundColumn
Change-Id: I05fa923f962191081ea3318837d3e181c183b466 Reviewed-on: https://gerrit.libreoffice.org/4590 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ListBox.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index c3aba8b9bb27..6b143c40c632 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -609,6 +609,11 @@ namespace frm
_rxInStream >> nValue;
m_aBoundColumn <<= nValue;
}
+ else // the constructor initialises to 1, so if it is empty,
+ // we must explicitly set to empty
+ {
+ m_aBoundColumn = Any();
+ }
if (nVersion > 2)
readHelpTextCompatibly(_rxInStream);