Kaydet (Commit) da5c8e28 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735646 Division or modulo by zero

Change-Id: I0567cfbf73b99f11649a08c73ea67d692691053c
üst b59196e1
...@@ -351,7 +351,7 @@ void SwAddressPreview::Paint(const Rectangle&) ...@@ -351,7 +351,7 @@ void SwAddressPreview::Paint(const Rectangle&)
void SwAddressPreview::MouseButtonDown( const MouseEvent& rMEvt ) void SwAddressPreview::MouseButtonDown( const MouseEvent& rMEvt )
{ {
Window::MouseButtonDown(rMEvt); Window::MouseButtonDown(rMEvt);
if(rMEvt.IsLeft() && ( pImpl->nRows || pImpl->nColumns)) if (rMEvt.IsLeft() && pImpl->nRows && pImpl->nColumns)
{ {
//determine the selected address //determine the selected address
const Point& rMousePos = rMEvt.GetPosPixel(); const Point& rMousePos = rMEvt.GetPosPixel();
......
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