[Libreoffice-commits] core.git: toolkit/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Feb 4 10:39:25 UTC 2019
toolkit/source/controls/tabpagemodel.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 3deab788199395712b7d4641be5b11623b2ed964
Author: Vasily Melenchuk <vasily.melenchuk at cib.de>
AuthorDate: Wed Jan 23 15:11:38 2019 +0300
Commit: Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Mon Feb 4 11:39:05 2019 +0100
tdf#87884: basic: fix for UnknownPropertyException
UnoControlTabPageModel had no USERFOMRCONTAINERS property
and this was causing an exception during any attempt to set
its properties.
Change-Id: Icc432d7a431ecd861ac4f00a96ec75165bec168c
Reviewed-on: https://gerrit.libreoffice.org/66801
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx
index b0731ec3b9e3..85f7347c4038 100644
--- a/toolkit/source/controls/tabpagemodel.cxx
+++ b/toolkit/source/controls/tabpagemodel.cxx
@@ -54,6 +54,7 @@ UnoControlTabPageModel::UnoControlTabPageModel( Reference< XComponentContext > c
ImplRegisterProperty( BASEPROPERTY_TITLE );
ImplRegisterProperty( BASEPROPERTY_HELPTEXT );
ImplRegisterProperty( BASEPROPERTY_HELPURL );
+ ImplRegisterProperty( BASEPROPERTY_USERFORMCONTAINEES );
}
OUString SAL_CALL UnoControlTabPageModel::getImplementationName()
@@ -83,6 +84,12 @@ Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
case BASEPROPERTY_DEFAULTCONTROL:
aAny <<= OUString("com.sun.star.awt.tab.UnoControlTabPage");
break;
+ case BASEPROPERTY_USERFORMCONTAINEES:
+ {
+ // We do not have here any usercontainers (yet?), but let's return something back
+ // so normal properties could be set without triggering UnknownPropertyException
+ return makeAny(true);
+ }
default:
aAny = UnoControlModel::ImplGetDefaultValue( nPropId );
}
More information about the Libreoffice-commits
mailing list