Revert "Ugly workaround for historic sxw files..."

There is cleaner, scriptable and out-of-source-tree workaround available at:
http://fridrich.blogspot.ch/2013/08/service-announcement-openning-of-sxw.html

This reverts commit 36c64c875f.

Change-Id: I37362e996ff1c73bcc88d1037defd07d7bab90af
This commit is contained in:
Fridrich Štrba
2013-08-20 15:48:37 +02:00
parent 6ea3aa6aae
commit c53d6326aa

View File

@@ -240,11 +240,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
}
catch (const WrappedTargetException& aWrap)
{
/* Cater for non-compliant sxw files created once upon a time by old libwpd/wpd2sxw combo
Don't bail-out early if the document is considered as corrupted. This allows us not to
reach the -- apparently -- catch-all SmFilterDetect::detect.
*/
if (!bDeepDetection && aTypeName != "writer_StarOffice_XML_Writer")
if (!bDeepDetection)
// Bail out early unless it's a deep detection.
return OUString();