diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-12 18:02:23 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-12 19:30:20 -0400 |
commit | d1fc3fce16172d7d619b6826de44528030ab36f8 (patch) | |
tree | 9110cd1475497622ca625562be0791232a5ad924 /sc | |
parent | 82f742f65d35896c69be38fa3b1c78a22226f71c (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 'sc')
-rw-r--r-- | sc/source/ui/unoobj/scdetect.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index c84315985cb8..d99cb030ab03 100644 --- a/sc/source/ui/unoobj/scdetect.cxx +++ b/sc/source/ui/unoobj/scdetect.cxx @@ -794,10 +794,9 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l lDescriptor[nIndexOfFilterName].Value <<= OUString(pFilter->GetName()); } - if ( pFilter ) - aTypeName = pFilter->GetTypeName(); - else + if (!pFilter) aTypeName.Erase(); + return aTypeName; } |