gdiplus: Only draw filled arrows with positive height.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-05-14 07:59:37 +03:00 committed by Alexandre Julliard
parent 39c8ebddcc
commit 9ffc6e600e
1 changed files with 7 additions and 0 deletions

View File

@ -1692,6 +1692,13 @@ static void draw_cap(GpGraphics *graphics, COLORREF color, GpLineCap cap, REAL s
if(!custom) if(!custom)
break; break;
if (custom->type == CustomLineCapTypeAdjustableArrow)
{
GpAdjustableArrowCap *arrow = (GpAdjustableArrowCap *)custom;
if (arrow->cap.fill && arrow->height <= 0.0)
break;
}
count = custom->pathdata.Count; count = custom->pathdata.Count;
custptf = heap_alloc_zero(count * sizeof(PointF)); custptf = heap_alloc_zero(count * sizeof(PointF));
custpt = heap_alloc_zero(count * sizeof(POINT)); custpt = heap_alloc_zero(count * sizeof(POINT));