diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2019-02-06 00:41:25 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-04-07 11:21:14 +0200 |
commit | ee1033abf489b77e60af9f9eb77267afa0952325 (patch) | |
tree | 50d13c62bbbe15e7f9302129015a6c1269a861f2 /toolkit | |
parent | 585390e244b9d4fa5e0bd2afbee5ec27e223ac4d (diff) |
basic: fix for UnoControlTabPageModel get/set properties
The userformscontainers is required property to pass checks in
getter/setter, but returning true instead of actual type is
not a best idea. So let's return actually expected dummy empty
container.
Change-Id: I5cc3e5462ed82f6f2f8e5a45d9fc2d9f9ce1c76f
Reviewed-on: https://gerrit.libreoffice.org/67431
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit 24e7d98219191ccdab3673ac96fa866c449cac5f)
Reviewed-on: https://gerrit.libreoffice.org/70235
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/tabpagemodel.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx index da7409162b88..c4fda04a4439 100644 --- a/toolkit/source/controls/tabpagemodel.cxx +++ b/toolkit/source/controls/tabpagemodel.cxx @@ -89,9 +89,10 @@ Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const break; case BASEPROPERTY_USERFORMCONTAINEES: { - // We do not have here any usercontainers (yet?), but let's return something back + // We do not have here any usercontainers (yet?), but let's return empty container back // so normal properties could be set without triggering UnknownPropertyException - return makeAny(true); + aAny <<= uno::Reference< XNameContainer >(); + break; } default: aAny = UnoControlModel::ImplGetDefaultValue( nPropId ); |