summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2019-02-06 00:41:25 +0300
committerMichael Stahl <Michael.Stahl@cib.de>2019-02-06 11:23:34 +0100
commit24e7d98219191ccdab3673ac96fa866c449cac5f (patch)
tree03d8cd4e1510b7e6cba20173118d043cbec4d362 /toolkit
parentf90e26b6313a2a7e492337f5957e49f5a512e5e7 (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>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/tabpagemodel.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx
index 85f7347c4038..738b526568b3 100644
--- a/toolkit/source/controls/tabpagemodel.cxx
+++ b/toolkit/source/controls/tabpagemodel.cxx
@@ -86,9 +86,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 );