Skip to content

Commit b5eb974

Browse files
committed
Merge pull request matplotlib#5023 from mdboom/fix-clipping
Fix Agg clipping
2 parents 7c1993d + 7120bbc commit b5eb974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_backend_agg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ RendererAgg::draw_path(GCAgg &gc, PathIterator &path, agg::trans_affine &trans,
479479

480480
trans *= agg::trans_affine_scaling(1.0, -1.0);
481481
trans *= agg::trans_affine_translation(0.0, (double)height);
482-
bool clip = !face.first && gc.has_hatchpath() && !path.has_curves();
482+
bool clip = !face.first && !gc.has_hatchpath() && !path.has_curves();
483483
bool simplify = path.should_simplify() && clip;
484484
double snapping_linewidth = points_to_pixels(gc.linewidth);
485485
if (gc.color.a == 0.0) {

0 commit comments

Comments
 (0)