WaE comparision between signed and unsigned
This commit is contained in:
parent
fa6a1107ed
commit
fdf18984dd
2 changed files with 2 additions and 2 deletions
|
@ -259,7 +259,7 @@ void XclImpTabViewSettings::Finalize()
|
|||
#i35812# Excel uses number of visible rows/columns, Calc uses position of freeze. */
|
||||
if( (maData.mnSplitX > 0) && (maData.maFirstXclPos.mnCol + maData.mnSplitX <= GetScMaxPos().Col()) )
|
||||
rTabSett.maFreezePos.SetCol( static_cast< SCCOL >( maData.maFirstXclPos.mnCol + maData.mnSplitX ) );
|
||||
if( (maData.mnSplitY > 0) && (maData.maFirstXclPos.mnRow + maData.mnSplitY <= GetScMaxPos().Row()) )
|
||||
if( (maData.mnSplitY > 0) && (maData.maFirstXclPos.mnRow + maData.mnSplitY <= static_cast<unsigned>(GetScMaxPos().Row())) )
|
||||
rTabSett.maFreezePos.SetRow( static_cast< SCROW >( maData.maFirstXclPos.mnRow + maData.mnSplitY ) );
|
||||
}
|
||||
else
|
||||
|
|
|
@ -138,7 +138,7 @@ void lclGetRowFromY(
|
|||
long nTwipsY = static_cast< long >( nY / fScale + 0.5 );
|
||||
long nRowH = 0;
|
||||
bool bFound = false;
|
||||
for( SCROW nRow = static_cast< SCROW >( nXclStartRow ); nRow <= nXclMaxRow; ++nRow )
|
||||
for( SCROW nRow = static_cast< SCROW >( nXclStartRow ); static_cast<unsigned>(nRow) <= nXclMaxRow; ++nRow )
|
||||
{
|
||||
nRowH = rDoc.GetRowHeight( nRow, nScTab );
|
||||
if( rnStartH + nRowH > nTwipsY )
|
||||
|
|
Loading…
Reference in a new issue