Use SfxObjectFactory::GetFactoryName, again

Change-Id: I653fdaa2564a97716e400b509eb7408ffe6050a3
Reviewed-on: https://gerrit.libreoffice.org/35373
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
This commit is contained in:
Matteo Casalin
2017-03-16 22:54:34 +01:00
parent b2c58d8612
commit ba66f477a3

View File

@@ -3506,8 +3506,9 @@ bool SfxObjectShell::WriteThumbnail(bool bEncrypted, bool bIsTemplate, const uno
xSet->setPropertyValue("MediaType", uno::makeAny(OUString("image/png")));
if (bEncrypted)
{
OUString sFactoryName = OUString::createFromAscii(GetFactory().GetShortName());
sal_uInt16 nResID = GraphicHelper::getThumbnailReplacementIDByFactoryName_Impl(sFactoryName, bIsTemplate);
const sal_uInt16 nResID = GraphicHelper::getThumbnailReplacementIDByFactoryName_Impl(
GetFactory().GetFactoryName(),
bIsTemplate);
if (nResID)
bResult = GraphicHelper::getThumbnailReplacement_Impl(nResID, xStream);
}