Kaydet (Commit) 0310edd7 authored tarafından Noel Grandin's avatar Noel Grandin

-Werror=unused-but-set-variable

Change-Id: I5ed8f2b49453493a143bcb1e15006f22212beefd
üst 40971354
......@@ -648,16 +648,13 @@ GridId IcnGridMap_Impl::GetGrid( const Point& rDocPos )
nY -= TBOFFS_WINBORDER;
nX /= _pView->nGridDX;
nY /= _pView->nGridDY;
bool bClipped = false;
if( nX >= _nGridCols )
{
nX = _nGridCols - 1;
bClipped = true;
}
if( nY >= _nGridRows )
{
nY = _nGridRows - 1;
bClipped = true;
}
GridId nId = GetGrid( (sal_uInt16)nX, (sal_uInt16)nY );
DBG_ASSERT(nId <(sal_uLong)(_nGridCols*_nGridRows),"GetGrid failed");
......
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