diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-27 17:14:16 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-27 18:53:00 +0200 |
commit | f237f1a616d973397511575c1eb033731d6007f7 (patch) | |
tree | 6938f60f32a0e092e16ddfb7fabd13104fe86bd8 /forms/source | |
parent | 4e7ab6e525d7ad4078786796267c2fa37d7f7ca8 (diff) |
fdo#66171 ListBox correctly save empty or zero BoundColumn
Change-Id: I05fa923f962191081ea3318837d3e181c183b466
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/ListBox.cxx | 5 |
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); |