| commit | ebbf550f7087b173bdcf600a02bb87c0b655e787 | [log] |
|---|---|---|
| author | Noel Grandin <noelgrandin@gmail.com> | Sat Mar 13 18:12:24 2021 +0200 |
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | Tue Mar 23 12:30:07 2021 +0100 |
| tree | d48609458f4e436f79449ee429ffdfe9465c2e71 | |
| parent | ff751d42a4f672e25188ba90958e91d7869f395a [diff] |
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@collabora.co.uk> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112866
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index e9b147f..a700488 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx
@@ -92,7 +92,7 @@ nSelect++; } } m_xFormBox->select(nSelect); m_xFormBox->select(std::min(nSelect, static_cast<sal_uInt16>(m_xFormBox->n_children() - 1))); SelectHdl(*m_xFormBox); }