oox/source/export/drawingml.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit a9dbc31fd3db37b2c6c5ca53ab712be76933b9ea Author: Darshan-upadhyay1110 <darshan.upadh...@collabora.com> AuthorDate: Tue Sep 26 12:29:15 2023 +0530 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Oct 11 11:39:15 2023 +0200 tdf#51510 Blurry QR code after save/reload (docx) - without GfxLinkType::NativeSvg CASE in writeToStorage method by default QR svg changes to low resolution image type and that is the why QR got blurry in doc or docx format - added svg option when we change from odt to doc or docx format Change-Id: I74aec0619992c1f455cc9cbf3c19e352c3037e04 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157264 Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> Tested-by: Szymon Kłos <szymon.k...@collabora.com> (cherry picked from commit 1d7dc53f19d188ae12603ca3cd526eb0a5016cf4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157729 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> (cherry picked from commit 60a51b8397154e9685e63cff0a60c1a3da034423) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157776 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index de7644ee4c54..ad5a5cc42d4d 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1446,6 +1446,10 @@ OUString GraphicExport::writeToStorage(const Graphic& rGraphic , bool bRelPathTo sMediaType = "image/png"; pExtension = ".png"; break; + case GfxLinkType::NativeSvg: + sMediaType = "image/svg"; + pExtension = ".svg"; + break; case GfxLinkType::NativeTif: sMediaType = "image/tiff"; pExtension = ".tif";