diff options
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configitem.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index fd12fbde6796..8ed1d317a09c 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -873,26 +873,26 @@ bool ConfigItem::ReplaceSetProperties( { bool bFound = comphelper::findValue(aSubNodeNames, rContainerSubNode) != -1; if(!bFound) - try - { - xCont->removeByName(rContainerSubNode); - } - catch (const Exception&) - { - if (isSimpleValueSet) + try { - try + xCont->removeByName(rContainerSubNode); + } + catch (const Exception&) + { + if (isSimpleValueSet) { - // #i37322#: fallback action: replace with <void/> - xCont->replaceByName(rContainerSubNode, Any()); - // fallback successful: continue looping - continue; + try + { + // #i37322#: fallback action: replace with <void/> + xCont->replaceByName(rContainerSubNode, Any()); + // fallback successful: continue looping + continue; + } + catch (Exception &) + {} // propagate original exception, if fallback fails } - catch (Exception &) - {} // propagate original exception, if fallback fails + throw; } - throw; - } } try { xBatch->commitChanges(); } catch (css::uno::Exception &) |