coverity#735600 : Division by zero

Change-Id: I67c2af62144872c4ad0ac7e17be5bb9a5883ba69
This commit is contained in:
Norbert Thiebaud 2014-01-19 15:44:21 -06:00
parent 838d0cd4f3
commit 2ee5758e4e

View file

@ -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 )