Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 514da05

Browse files
committed
Backport of r8515: Reset clipping upon exit of draw_markers to avoid negative interaction with blitting.
svn path=/branches/v1_0_maint/; revision=8526
1 parent 6a732b1 commit 514da05

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/_backend_agg.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,8 @@ RendererAgg::draw_markers(const Py::Tuple& args)
796796
delete[] fillCache;
797797
if (strokeCache != staticStrokeCache)
798798
delete[] strokeCache;
799+
theRasterizer.reset_clipping();
800+
rendererBase.reset_clipping(true);
799801
throw;
800802
}
801803

@@ -804,6 +806,9 @@ RendererAgg::draw_markers(const Py::Tuple& args)
804806
if (strokeCache != staticStrokeCache)
805807
delete[] strokeCache;
806808

809+
theRasterizer.reset_clipping();
810+
rendererBase.reset_clipping(true);
811+
807812
return Py::Object();
808813
}
809814

@@ -1086,6 +1091,7 @@ RendererAgg::draw_image(const Py::Tuple& args)
10861091
{
10871092
set_clipbox(gc.cliprect, rendererBase);
10881093
rendererBase.blend_from(pixf, 0, (int)x, (int)(height - (y + image->rowsOut)));
1094+
rendererBase.reset_clipping(true);
10891095
}
10901096

10911097
image->flipud_out(empty);

0 commit comments

Comments
 (0)