Browse Source

Fix calltip crash due to the division by zero

Fix #14664, close #14667
pull/14675/head
Don Ho 10 months ago
parent
commit
f09b653d19
  1. 5
      PowerEditor/src/ScintillaComponent/FunctionCallTip.cpp

5
PowerEditor/src/ScintillaComponent/FunctionCallTip.cpp

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

Loading…
Cancel
Save