coverity#735600 : Division by zero
Change-Id: I67c2af62144872c4ad0ac7e17be5bb9a5883ba69
This commit is contained in:
parent
838d0cd4f3
commit
2ee5758e4e
1 changed files with 1 additions and 0 deletions
|
@ -1453,6 +1453,7 @@ void BreakPointWindow::ShowMarker( bool bShow )
|
|||
BreakPoint* BreakPointWindow::FindBreakPoint( const Point& rMousePos )
|
||||
{
|
||||
size_t nLineHeight = GetTextHeight();
|
||||
nLineHeight = nLineHeight > 0 ? nLineHeight : 1;
|
||||
size_t nYPos = rMousePos.Y() + nCurYOffset;
|
||||
|
||||
for ( size_t i = 0, n = GetBreakPoints().size(); i < n ; ++i )
|
||||
|
|
Loading…
Reference in a new issue