sd/source/ui/dlg/animobjs.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit ad9df93bf106adb1708abb7dbf61f757eee28a60 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Oct 26 18:51:28 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Oct 27 18:37:31 2024 +0100
cid#1608184 silence Overflowed constant Change-Id: Ifb16694334fa0f0aa58cbe99075712046473404d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175698 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx index daf5011aa7de..3970d95f62bf 100644 --- a/sd/source/ui/dlg/animobjs.cxx +++ b/sd/source/ui/dlg/animobjs.cxx @@ -548,6 +548,8 @@ void AnimationWindow::UpdateControl(bool const bDisableCtrls) if (!m_FrameList.empty() && !bMovie) { + assert(m_nCurrentFrame != EMPTY_FRAMELIST && "only arises when m_FrameList.empty()"); + size_t nIndex = m_nCurrentFrame + 1; m_xNumFldBitmap->set_value(nIndex);