WaE sign/unsigned comp
Change-Id: I12cb5aa89caa3670101f4632701e33851885c1db
This commit is contained in:
parent
20b8944cd4
commit
17b56dc326
@ -2814,14 +2814,14 @@ EditPaM ImpEditEngine::ImpInsertParaBreak( EditPaM& rPaM, bool bKeepEndingAttrib
|
|||||||
{
|
{
|
||||||
// Correct only if really a word gets overlapped in the process of
|
// Correct only if really a word gets overlapped in the process of
|
||||||
// Spell checking
|
// Spell checking
|
||||||
if (i->mnStart > nEnd)
|
if (i->mnStart > (size_t)nEnd)
|
||||||
{
|
{
|
||||||
pRWrongs->push_back(*i);
|
pRWrongs->push_back(*i);
|
||||||
editeng::MisspellRange& rRWrong = pRWrongs->back();
|
editeng::MisspellRange& rRWrong = pRWrongs->back();
|
||||||
rRWrong.mnStart = rRWrong.mnStart - nEnd;
|
rRWrong.mnStart = rRWrong.mnStart - nEnd;
|
||||||
rRWrong.mnEnd = rRWrong.mnEnd - nEnd;
|
rRWrong.mnEnd = rRWrong.mnEnd - nEnd;
|
||||||
}
|
}
|
||||||
else if (i->mnStart < nEnd && i->mnEnd > nEnd)
|
else if (i->mnStart < (size_t)nEnd && i->mnEnd > (size_t)nEnd)
|
||||||
i->mnEnd = nEnd;
|
i->mnEnd = nEnd;
|
||||||
}
|
}
|
||||||
sal_Int32 nInv = nEnd ? nEnd-1 : nEnd;
|
sal_Int32 nInv = nEnd ? nEnd-1 : nEnd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user