[Libreoffice-commits] core.git: sw/source
Michael Meeks
michael.meeks at suse.com
Tue Jun 18 02:01:57 PDT 2013
sw/source/filter/xml/XMLRedlineImportHelper.cxx | 39 ++++++++++++++----------
1 file changed, 23 insertions(+), 16 deletions(-)
New commits:
commit b9155a663b767695c5d636e855765c209944cfd5
Author: Michael Meeks <michael.meeks at suse.com>
Date: Tue Jun 18 10:00:12 2013 +0100
fdo#65882 - fix intermittent writer unit test failure on exit.
Change-Id: Iffa4ea724f2192f85df66eaf4e9e4f30e6ba3d4b
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
index e1118e0..e7583aa 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
@@ -368,25 +368,32 @@ XMLRedlineImportHelper::~XMLRedlineImportHelper()
}
// set redline mode & key
- Any aAny;
+ try
+ {
+ Any aAny;
- aAny.setValue( &bShowChanges, ::getBooleanCppuType() );
- if ( bHandleShowChanges )
- xModelPropertySet->setPropertyValue( sShowChanges, aAny );
- else
- xImportInfoPropertySet->setPropertyValue( sShowChanges, aAny );
+ aAny.setValue( &bShowChanges, ::getBooleanCppuType() );
+ if ( bHandleShowChanges )
+ xModelPropertySet->setPropertyValue( sShowChanges, aAny );
+ else
+ xImportInfoPropertySet->setPropertyValue( sShowChanges, aAny );
- aAny.setValue( &bRecordChanges, ::getBooleanCppuType() );
- if ( bHandleRecordChanges )
- xModelPropertySet->setPropertyValue( sRecordChanges, aAny );
- else
- xImportInfoPropertySet->setPropertyValue( sRecordChanges, aAny );
+ aAny.setValue( &bRecordChanges, ::getBooleanCppuType() );
+ if ( bHandleRecordChanges )
+ xModelPropertySet->setPropertyValue( sRecordChanges, aAny );
+ else
+ xImportInfoPropertySet->setPropertyValue( sRecordChanges, aAny );
- aAny <<= aProtectionKey;
- if ( bHandleProtectionKey )
- xModelPropertySet->setPropertyValue( sRedlineProtectionKey, aAny );
- else
- xImportInfoPropertySet->setPropertyValue( sRedlineProtectionKey, aAny);
+ aAny <<= aProtectionKey;
+ if ( bHandleProtectionKey )
+ xModelPropertySet->setPropertyValue( sRedlineProtectionKey, aAny );
+ else
+ xImportInfoPropertySet->setPropertyValue( sRedlineProtectionKey, aAny);
+ }
+ catch (const uno::RuntimeException &) // fdo#65882
+ {
+ SAL_WARN( "sw", "potentially benign ordering issue during shutdown" );
+ }
}
void XMLRedlineImportHelper::Add(
More information about the Libreoffice-commits
mailing list