sw/source/uibase/config/cfgitems.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit bbef07065433ecc33e22724e65974e2b7509929a
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Wed Sep 18 08:22:46 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Sep 18 13:15:16 2024 +0200

    cid#1619460 Uninitialized scalar field
    
    since:
    
    commit 4855bbfa4d0cbc6376ab2a40151886f84fafac40
    CommitDate: Tue Sep 17 03:44:46 2024 +0200
    
        tdf#132274 add zoom defaults to Writer options
    
    Change-Id: Ie7dae9add87fe14c87b53d9b86d77a84ce0c2a7a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173587
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/uibase/config/cfgitems.cxx 
b/sw/source/uibase/config/cfgitems.cxx
index 3a1cb2bf4ca2..a041169dbba4 100644
--- a/sw/source/uibase/config/cfgitems.cxx
+++ b/sw/source/uibase/config/cfgitems.cxx
@@ -126,6 +126,9 @@ SwElemItem::SwElemItem(const SwViewOption& rVOpt) :
     m_bShowChangesInMargin = rVOpt.IsShowChangesInMargin();
     m_bFieldHiddenText = rVOpt.IsShowHiddenField();
     m_bShowHiddenPara  = rVOpt.IsShowHiddenPara();
+    m_bDefaultZoom = false;
+    m_eDefaultZoomType = rVOpt.GetZoomType();
+    m_nDefaultZoomValue = rVOpt.GetZoom();
 }
 
 SwElemItem* SwElemItem::Clone( SfxItemPool* ) const

Reply via email to