oox/source/export/drawingml.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 1d7dc53f19d188ae12603ca3cd526eb0a5016cf4
Author:     Darshan-upadhyay1110 <darshan.upadh...@collabora.com>
AuthorDate: Tue Sep 26 12:29:15 2023 +0530
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Tue Sep 26 15:53:34 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>

diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 2e8bf4129860..c2c633f90da3 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1429,6 +1429,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";

Reply via email to