summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-02-10 16:45:27 +0100
committerAndras Timar <andras.timar@collabora.com>2014-02-12 08:12:50 +0000
commit3bb16f0eeb7fc8fe0331e0aa11f65e2114928d09 (patch)
treeee073daabfb91daf168ac2feba8a606eb835dc52
parentee12691374f68968e2fdf87ee4bfb736080daa7e (diff)
fdo#73363: sd: fix mis-detection of Visio files as PPT
SdFilterDetect::detect() erroneously detects all binary MSO files, and because the Visio types would be checked after PPT, Visio is pre-empted. Change-Id: I6ec3647a508dc8d79b47bfff6de35ccae39416ee (cherry picked from commit e62339f856efa0b8ef03df3bf8b93e098c4ac0d3) Reviewed-on: https://gerrit.libreoffice.org/7977 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--sd/source/ui/unoidl/sddetect.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index 9e98a7b2e3e6..66fab30fedcd 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -371,6 +371,10 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
else
pFilter = SfxFilter::GetFilterByName( pFilterPowerPoint97);
}
+ else
+ {
+ pFilter = 0;
+ }
}
else
{
@@ -423,6 +427,10 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
}
}
}
+ else
+ {
+ pFilter = 0;
+ }
}
}