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

coverity#706073 Unintended sign extension

Change-Id: I13272490bf8a08cbfb1ffc37828fb30fb92f9139
üst d9f585b8
......@@ -635,9 +635,9 @@ GridId IcnGridMap_Impl::GetGrid( sal_uInt16 nGridX, sal_uInt16 nGridY )
{
Create();
if( _pView->nWinBits & WB_ALIGN_TOP )
return nGridX + ( nGridY * _nGridCols );
return nGridX + ( static_cast<GridId>(nGridY) * _nGridCols );
else
return nGridY + ( nGridX * _nGridRows );
return nGridY + ( static_cast<GridId>(nGridX) * _nGridRows );
}
GridId IcnGridMap_Impl::GetGrid( const Point& rDocPos, bool* pbClipped )
......
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