[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - reportdesign/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Aug 16 06:57:42 UTC 2018


 reportdesign/source/ui/report/ReportController.cxx |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 97af032407344766658608838ca1eb02ce72b46e
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Aug 12 11:39:04 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Aug 16 08:57:14 2018 +0200

    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
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    (cherry picked from commit 3512079dc42a6472136f9c229fc9ea0b0033ebf9)
    Reviewed-on: https://gerrit.libreoffice.org/59145
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 32898fcc74a6..973e036183ad 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -4147,7 +4147,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();


More information about the Libreoffice-commits mailing list