cid#1504074 silence Improper use of negative value
Change-Id: I4580d4cce8a53f2b1faf0738d08509d2730868df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133431 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
2fa07953a6
commit
a32bd25acf
1 changed files with 2 additions and 2 deletions
|
@ -3335,8 +3335,8 @@ void ScViewData::ReadUserData(std::u16string_view rData)
|
|||
// SetPagebreakMode must always be called due to CalcPPT / RecalcPixPos()
|
||||
|
||||
// sheet may have become invalid (for instance last version):
|
||||
SCTAB nNewTab = static_cast<SCTAB>(o3tl::toInt64(o3tl::getToken(rData, 0, ';', nMainIdx)));
|
||||
if (mrDoc.HasTable(nNewTab))
|
||||
sal_Int64 nNewTab = o3tl::toInt64(o3tl::getToken(rData, 0, ';', nMainIdx));
|
||||
if (nNewTab >= 0 && mrDoc.HasTable(nNewTab))
|
||||
SetTabNo(nNewTab);
|
||||
|
||||
// if available, get tab bar width:
|
||||
|
|
Loading…
Reference in a new issue