summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-12 18:02:23 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-12 19:30:20 -0400
commitd1fc3fce16172d7d619b6826de44528030ab36f8 (patch)
tree9110cd1475497622ca625562be0791232a5ad924 /sd
parent82f742f65d35896c69be38fa3b1c78a22226f71c (diff)
fdo#64448: Don't get type name from incorrect filter.
This causes wrong format type to get "detected" when testing for a completely different file format type. Change-Id: I230759e2be432beeae2db24c12369ccb4585f334
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/unoidl/sddetect.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index ac1f7d9c17d2..db4d7324334c 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -496,9 +496,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
lDescriptor[nIndexOfDocumentTitle].Value <<= aDocumentTitle;
}
- if ( pFilter )
- aTypeName = pFilter->GetTypeName();
- else
+ if (!pFilter)
aTypeName = OUString();
return aTypeName;