From 6e7ef1687ffd314f497eb9adbca9a92eec07ecca Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 13 Nov 2023 22:07:42 -0500 Subject: [PATCH] * src/raster/ftraster.c (Increment): Minor tweak. --- src/raster/ftraster.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c index d2f56942f..c0a73366a 100644 --- a/src/raster/ftraster.c +++ b/src/raster/ftraster.c @@ -1978,17 +1978,14 @@ if ( !current ) return; - next = current->link; - - while ( next ) + while ( current->link ) { + next = current->link; + if ( current->X <= next->X ) { old = ¤t->link; - current = *old; - - if ( !current ) - return; + current = next; } else { @@ -1996,11 +1993,10 @@ current->link = next->link; next->link = current; + /* Restarting */ old = list; current = *old; } - - next = current->link; } }