Skip to content

Commit fe0c501

Browse files
authored
Fix noStroke option (#2)
Signed-off-by: Aravinda VK <vkaravinda7@gmail.com>
1 parent 51e3482 commit fe0c501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/chitra/elements/core.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void drawShapeProperties(cairo_t* cairoCtx, ShapeProperties shapeProps)
1111
cairo_set_source_rgba(cairoCtx, shapeProps.fill.toRGBAf.r,
1212
shapeProps.fill.toRGBAf.g, shapeProps.fill.toRGBAf.b, shapeProps.fill.toRGBAf.a);
1313

14-
if (shapeProps.strokeWidth > 0)
14+
if (shapeProps.strokeWidth > 0 && !shapeProps.noStroke)
1515
{
1616
cairo_fill_preserve(cairoCtx);
1717
cairo_set_line_width(cairoCtx, shapeProps.strokeWidth);

0 commit comments

Comments
 (0)