Kaydet (Commit) 2ee5758e authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#735600 : Division by zero

Change-Id: I67c2af62144872c4ad0ac7e17be5bb9a5883ba69
üst 838d0cd4
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment