sfx2/source/doc/objstor.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit ba66f477a3db8afdc8d76283747d30e80d437a8f Author: Matteo Casalin <matteo.casa...@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 <c...@libreoffice.org> Reviewed-by: Matteo Casalin <matteo.casa...@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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits