Skip to content

Commit

Permalink
gdiplus: Only draw filled arrows with positive height.
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Sivov <[email protected]>
Signed-off-by: Vincent Povirk <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
nsivov authored and julliard committed May 14, 2018
1 parent 39c8ebd commit 9ffc6e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dlls/gdiplus/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,13 @@ static void draw_cap(GpGraphics *graphics, COLORREF color, GpLineCap cap, REAL s
if(!custom)
break;

if (custom->type == CustomLineCapTypeAdjustableArrow)
{
GpAdjustableArrowCap *arrow = (GpAdjustableArrowCap *)custom;
if (arrow->cap.fill && arrow->height <= 0.0)
break;
}

count = custom->pathdata.Count;
custptf = heap_alloc_zero(count * sizeof(PointF));
custpt = heap_alloc_zero(count * sizeof(POINT));
Expand Down

0 comments on commit 9ffc6e6

Please sign in to comment.