[Libreoffice-commits] core.git: sfx2/source
Matteo Casalin
matteo.casalin at yahoo.com
Fri Mar 17 20:15:10 UTC 2017
sfx2/source/doc/objstor.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit ba66f477a3db8afdc8d76283747d30e80d437a8f
Author: Matteo Casalin <matteo.casalin at yahoo.com>
Date: Thu Mar 16 22:54:34 2017 +0100
Use SfxObjectFactory::GetFactoryName, again
Change-Id: I653fdaa2564a97716e400b509eb7408ffe6050a3
Reviewed-on: https://gerrit.libreoffice.org/35373
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 420cb6ecd35c..3266f5d4ac95 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -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);
}
More information about the Libreoffice-commits
mailing list