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

Skip to content

Commit 955fa1e

Browse files
committed
Bugfix for missing markers. Bugfix for faceted pcolor-based quadmeshes.
svn path=/branches/transforms/; revision=4590
1 parent ff1d64b commit 955fa1e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/_backend_agg.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
506506
//maxim's suggestions for cached scanlines
507507
agg::scanline_storage_aa8 scanlines;
508508
theRasterizer->reset();
509+
theRasterizer->reset_clipping();
510+
rendererBase->reset_clipping(true);
509511

510512
agg::int8u staticFillCache[MARKER_CACHE_SIZE];
511513
agg::int8u staticStrokeCache[MARKER_CACHE_SIZE];
@@ -792,8 +794,12 @@ void RendererAgg::_draw_path(path_t& path, bool has_clippath,
792794
// Render stroke
793795
if (gc.linewidth != 0.0) {
794796
double linewidth = gc.linewidth;
795-
if (!gc.isaa)
796-
linewidth = round(linewidth);
797+
if (!gc.isaa) {
798+
if (linewidth < 0.5)
799+
linewidth = 0.5;
800+
else
801+
linewidth = round(linewidth);
802+
}
797803
if (gc.dashes.size() == 0) {
798804
stroke_t stroke(path);
799805
stroke.width(linewidth);

0 commit comments

Comments
 (0)