Kaydet (Commit) 6cee94ba authored tarafından Miklos Vajna's avatar Miklos Vajna

fdo#84692 SwXAutoStyleFamily::insertStyle: don't throw on unknown property

Regression from commit 7d9bb549
(Related: #i124638# Second step of DrawingLayer FillAttributes...,
2014-06-02), the problem was that the new branch (used for paragraphs)
in the method does not tolerate unknown properties (it throws), while
the behavior was just a warning.

Adapt the new branch to the old behavior, so that the document can be
opened again.

Change-Id: I5d849987602fb8aa0cbbda92ce07c050067473b3
üst 5f447bb0
...@@ -4210,8 +4210,8 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle( ...@@ -4210,8 +4210,8 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
if (!pEntry) if (!pEntry)
{ {
throw uno::RuntimeException(OUString("Unknown property: ") + rPropName, SAL_WARN("sw.core", "SwXAutoStyleFamily::Modify: Unknown property: " << rPropName);
static_cast<cppu::OWeakObject*>(this)); continue;
} }
const sal_uInt8 nMemberId(pEntry->nMemberId & (~SFX_METRIC_ITEM)); const sal_uInt8 nMemberId(pEntry->nMemberId & (~SFX_METRIC_ITEM));
......
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