Kaydet (Commit) 3512079d authored tarafından Julien Nabet's avatar Julien Nabet

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/58895Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 0d227c96
...@@ -4175,7 +4175,14 @@ bool OReportController::impl_setPropertyAtControls_throw(const char* pUndoResId, ...@@ -4175,7 +4175,14 @@ bool OReportController::impl_setPropertyAtControls_throw(const char* pUndoResId,
{ {
const uno::Reference< beans::XPropertySet > xControlModel(*aIter,uno::UNO_QUERY); const uno::Reference< beans::XPropertySet > xControlModel(*aIter,uno::UNO_QUERY);
if ( xControlModel.is() ) if ( xControlModel.is() )
xControlModel->setPropertyValue(_sProperty,_aValue); try
{
xControlModel->setPropertyValue(_sProperty,_aValue);
}
catch(const UnknownPropertyException& e)
{
SAL_WARN("reportdesign", "UnknowPropertyException:" << e);
}
} }
return !aSelection.empty(); return !aSelection.empty();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment