diff options
Diffstat (limited to 'src/GridText.c')
-rw-r--r-- | src/GridText.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GridText.c b/src/GridText.c index 433b86b2..493e66cc 100644 --- a/src/GridText.c +++ b/src/GridText.c @@ -2459,7 +2459,7 @@ PUBLIC void HText_endAnchor ARGS2( * without needing to close any anchor with an HREF * within which that link might be embedded. - FM */ - if (number <= 0) { + if (number <= 0 || text->last_anchor->number == number) { a = text->last_anchor; } else { for (a = text->first_anchor; a; a = a->next) { |