From a272444096aa88fcab677492086c03480b029e7c Mon Sep 17 00:00:00 2001 From: PIGNOSE Date: Wed, 10 Jul 2019 08:44:32 +0900 Subject: [PATCH] WIP: fix line through z-index issue (#1630) --- MagickCore/annotate.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/MagickCore/annotate.c b/MagickCore/annotate.c index eaf6b8224..c921100c6 100644 --- a/MagickCore/annotate.c +++ b/MagickCore/annotate.c @@ -526,19 +526,17 @@ MagickExport MagickBooleanType AnnotateImage(Image *image, (void) DrawImage(image,annotate_info,exception); break; } - case LineThroughDecoration: - { + } + status=RenderType(image,annotate,&offset,&metrics,exception); + if (status == MagickFalse) + break; + + if (annotate->decorate == LineThroughDecoration) { annotate_info->affine.ty-=(draw_info->affine.sy*(height+ metrics.underline_position+metrics.descent*2)/2.0); (void) CloneString(&annotate_info->primitive,primitive); (void) DrawImage(image,annotate_info,exception); - } - default: - break; } - status=RenderType(image,annotate,&offset,&metrics,exception); - if (status == MagickFalse) - break; } /* Relinquish resources. -- 2.40.0