diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-30 19:15:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-30 19:17:07 +0000 |
commit | 70485c1137e04a4b86eb25bb3d9a619ced52b3ea (patch) | |
tree | bd26cbb22c3feaf94cc8c79059647c4fc17ccace /extensions | |
parent | f5296655650e75fee259acf1959c15eb2cea3a1e (diff) |
nothing to see here, move along
brown bag fix for
commit cdbfbd0f7c3ed3bd3235f97197d279c41913245b
Date: Thu Oct 30 09:21:40 2014 +0000
coverity#735608 Division or modulo by float zero
and
coverity#735607 Division or modulo by float zero
Change-Id: I8e04765cf5354d57a54b166a5e2af71b40b670bb
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/scanner/grid.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/scanner/grid.cxx b/extensions/source/scanner/grid.cxx index 44143f555509..96fb625615c6 100644 --- a/extensions/source/scanner/grid.cxx +++ b/extensions/source/scanner/grid.cxx @@ -308,7 +308,7 @@ void GridWindow::transform( const Point& rOriginal, double& x, double& y ) { const long nWidth = m_aGridArea.GetWidth(); const long nHeight = m_aGridArea.GetHeight(); - if (!nWidth || nHeight) + if (!nWidth || !nHeight) return; x = ( rOriginal.X() - m_aGridArea.Left() ) * (m_fMaxX - m_fMinX) / (double)nWidth + m_fMinX; y = ( m_aGridArea.Bottom() - rOriginal.Y() ) * (m_fMaxY - m_fMinY) / (double)nHeight + m_fMinY; |