diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-19 15:44:21 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-19 15:44:21 -0600 |
commit | 2ee5758e4e91ab2d477d02310983f25e2f0d854e (patch) | |
tree | 4ec1544a302a98074211a7745f93d7083d8e43ae /basctl | |
parent | coverity#1000814 coverity#1000815 : Unintended sign extension (diff) | |
download | core-2ee5758e4e91ab2d477d02310983f25e2f0d854e.tar.gz core-2ee5758e4e91ab2d477d02310983f25e2f0d854e.zip |
coverity#735600 : Division by zero
Change-Id: I67c2af62144872c4ad0ac7e17be5bb9a5883ba69
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 2ae6efd2b5a5..10cfe47f1071 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -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 ) |