Fix calltip crash due to the division by zero

Fix #14664, close #14667
This commit is contained in:
Don Ho 2024-02-03 11:27:52 +01:00
parent 9cec6aff3b
commit f09b653d19
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ void FunctionCallTip::showNextOverload()
{ {
if (!isVisible()) if (!isVisible())
return; return;
if (_currentNbOverloads > 0)
_currentOverload = (_currentOverload + 1) % _currentNbOverloads; _currentOverload = (_currentOverload + 1) % _currentNbOverloads;
showCalltip(); showCalltip();
} }