* src/raster/ftraster.c (Increment): Minor tweak.

This commit is contained in:
Alexei Podtelezhnikov 2023-11-13 22:07:42 -05:00
parent e9359e29be
commit 6e7ef1687f
1 changed files with 5 additions and 9 deletions

View File

@ -1978,17 +1978,14 @@
if ( !current ) if ( !current )
return; return;
next = current->link; while ( current->link )
while ( next )
{ {
next = current->link;
if ( current->X <= next->X ) if ( current->X <= next->X )
{ {
old = &current->link; old = &current->link;
current = *old; current = next;
if ( !current )
return;
} }
else else
{ {
@ -1996,11 +1993,10 @@
current->link = next->link; current->link = next->link;
next->link = current; next->link = current;
/* Restarting */
old = list; old = list;
current = *old; current = *old;
} }
next = current->link;
} }
} }