From ad9df93bf106adb1708abb7dbf61f757eee28a60 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 26 Oct 2024 18:51:28 +0100 Subject: cid#1608184 silence Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifb16694334fa0f0aa58cbe99075712046473404d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175698 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sd/source/ui/dlg/animobjs.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sd/source') 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); -- cgit