[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sw/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 26 13:24:28 UTC 2021
sw/source/ui/misc/outline.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e826753132ccd77f7bdcc096712d577f42911968
Author: Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Sat Mar 13 18:12:24 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Mar 26 14:23:51 2021 +0100
tdf#140590 Writer crash in Tools>Chapter Numbering
and an assert in vcl to catch it a little higher up the stack.
Change-Id: Iaa2e70f901f93ca9f678118e4f5a8bc1b6eda20a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112459
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
Signed-off-by: Xisco Fauli <xiscofauli at libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112866
(cherry picked from commit ebbf550f7087b173bdcf600a02bb87c0b655e787)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113124
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx
index 8a62e03054ea..3ad4e369bd75 100644
--- a/sw/source/ui/misc/outline.cxx
+++ b/sw/source/ui/misc/outline.cxx
@@ -92,7 +92,7 @@ void SwNumNamesDlg::SetUserNames(const OUString *pList[])
nSelect++;
}
}
- m_xFormBox->select(nSelect);
+ m_xFormBox->select(std::min(nSelect, static_cast<sal_uInt16>(m_xFormBox->n_children() - 1)));
SelectHdl(*m_xFormBox);
}
More information about the Libreoffice-commits
mailing list