diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-27 17:14:16 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-06-28 12:51:45 +0000 |
commit | 19d08b0c655ff66c2948d6390e32e0ad0a1a67a3 (patch) | |
tree | 27ea42b8653082a85c9a1525c3f71b884fd62679 /forms | |
parent | 2cc79aeaf0fb68ea5bed912ed229166c7af3e45d (diff) |
fdo#66171 ListBox correctly save empty or zero BoundColumn
Change-Id: I05fa923f962191081ea3318837d3e181c183b466
Reviewed-on: https://gerrit.libreoffice.org/4589
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.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 14569f5a9bdb..95b7ea13449b 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); |