summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-08-12 11:39:04 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-08-15 21:23:39 +0200
commit3512079dc42a6472136f9c229fc9ea0b0033ebf9 (patch)
tree13872eb6149e356dc1ccf43038d9916dc4753c66
parent0d227c96e11d7d03829144183bc66d229e059a4b (diff)
tdf#117795: not all elements have ChartFontName property
See bt https://bugs.documentfoundation.org/attachment.cgi?id=144114 In this bugtracker we tried to apply a change of fontname on reportdesign::OFixedLine Change-Id: I60ee5ca9f967fc71939e2f57ecd9de7edd680958 Reviewed-on: https://gerrit.libreoffice.org/58895 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 64373669f9b4..1a4964a2ed2c 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -4175,7 +4175,14 @@ bool OReportController::impl_setPropertyAtControls_throw(const char* pUndoResId,
{
const uno::Reference< beans::XPropertySet > xControlModel(*aIter,uno::UNO_QUERY);
if ( xControlModel.is() )
- xControlModel->setPropertyValue(_sProperty,_aValue);
+ try
+ {
+ xControlModel->setPropertyValue(_sProperty,_aValue);
+ }
+ catch(const UnknownPropertyException& e)
+ {
+ SAL_WARN("reportdesign", "UnknowPropertyException:" << e);
+ }
}
return !aSelection.empty();