diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-12 18:02:23 -0400 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-07-15 10:45:21 +0000 |
commit | e7a43ee7c00b2e244ceb6218b8d342f7656736a9 (patch) | |
tree | 187031846621d1fe2ec048be6f067f1bf939cea1 /sd | |
parent | 09b20c794a6647d3dd364e0f12d139532a1689bd (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
Reviewed-on: https://gerrit.libreoffice.org/4877
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/sddetect.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx index b5980938681f..9e98a7b2e3e6 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; |