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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user