Kaydet (Commit) c60ef370 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Noel Grandin

Related tdf#117795: comment fix

Change-Id: Icf3bb150d0009b50295002a781e71a70a77521fa
Reviewed-on: https://gerrit.libreoffice.org/59147
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 4dc74852
...@@ -4175,6 +4175,10 @@ bool OReportController::impl_setPropertyAtControls_throw(const char* pUndoResId, ...@@ -4175,6 +4175,10 @@ 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() )
// 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 try
{ {
xControlModel->setPropertyValue(_sProperty,_aValue); xControlModel->setPropertyValue(_sProperty,_aValue);
......
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