riched20: Fixed wrong condition (Coverity).

This commit is contained in:
Marcus Meissner 2007-02-05 21:24:27 +01:00 committed by Alexandre Julliard
parent 7fba3dd88d
commit 886b15e723
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ ME_DisplayItem *ME_FindRowStart(ME_Context *c, ME_DisplayItem *item,
int nRelPos) { int nRelPos) {
ME_DisplayItem *para = ME_GetParagraph(item); ME_DisplayItem *para = ME_GetParagraph(item);
ME_MustBeWrapped(c, para); ME_MustBeWrapped(c, para);
if(nRelPos>=0) { /* if this or preceding row */ if(nRelPos<=0) { /* if this or preceding row */
while(nRelPos<=0) { while(nRelPos<=0) {
ME_DisplayItem *item2 = ME_FindItemBack(item, diStartRowOrParagraph); ME_DisplayItem *item2 = ME_FindItemBack(item, diStartRowOrParagraph);
if (item2->type == diParagraph) if (item2->type == diParagraph)