summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-06-27 17:14:16 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-06-27 18:53:00 +0200
commitf237f1a616d973397511575c1eb033731d6007f7 (patch)
tree6938f60f32a0e092e16ddfb7fabd13104fe86bd8 /forms
parent4e7ab6e525d7ad4078786796267c2fa37d7f7ca8 (diff)
fdo#66171 ListBox correctly save empty or zero BoundColumn
Change-Id: I05fa923f962191081ea3318837d3e181c183b466
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 cd058ab7c13f..2abbf0925823 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -650,6 +650,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);