Kaydet (Commit) efb5faa2 authored tarafından Stephan Bergmann's avatar Stephan Bergmann Kaydeden (comit) Caolán McNamara

Add back initialization of ScNavigatorSettings::maExpandedVec

...lost with 2ea92be9 "convert SC_CONVERT
constants to scoped enum".  And indeed, e.g., opening the document from
<https://bugs.documentfoundation.org/show_bug.cgi?id=114932#c2> through steps 1
and 2 in a UBSan build reports a use of an uninitialized (bad-valued) bool in
ScNavigatorSettings::IsExpanded.

Change-Id: If0dfadc6bd8033e61e334f59b3028ab005a892cd
Reviewed-on: https://gerrit.libreoffice.org/47767Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit fbec01b7)
Reviewed-on: https://gerrit.libreoffice.org/47785Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 11991973
......@@ -435,6 +435,7 @@ ScNavigatorSettings::ScNavigatorSettings()
: mnRootSelected(ScContentId::ROOT)
, mnChildSelected(SC_CONTENT_NOCHILD)
{
maExpandedVec.fill(false);
}
SFX_IMPL_CHILDWINDOWCONTEXT( ScNavigatorDialogWrapper, SID_NAVIGATOR )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment