summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-08-16 07:30:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-16 08:57:57 +0200
commitc60ef370a39e91974a242c7f780d7d8725fea7da (patch)
tree8ed6b42f094ac6417ada2ccf97fc8b18afb14394 /reportdesign
parent4dc748525c5280b821ee07fbb82ac42147352d31 (diff)
Related tdf#117795: comment fix
Change-Id: Icf3bb150d0009b50295002a781e71a70a77521fa Reviewed-on: https://gerrit.libreoffice.org/59147 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 1a4964a2ed2c..57c38e54109a 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -4175,6 +4175,10 @@ bool OReportController::impl_setPropertyAtControls_throw(const char* pUndoResId,
{
const uno::Reference< beans::XPropertySet > xControlModel(*aIter,uno::UNO_QUERY);
if ( xControlModel.is() )
+ // tdf#117795: some elements may have not some property
+ // eg class "OFixedLine" doesn't have property "CharFontName"
+ // so in this case, instead of crashing when selecting all and changing font
+ // just display a warning
try
{
xControlModel->setPropertyValue(_sProperty,_aValue);