@@ -665,7 +665,8 @@ Py::Object
665
665
RendererAgg::draw_markers (const Py::Tuple& args)
666
666
{
667
667
typedef agg::conv_transform<PathIterator> transformed_path_t ;
668
- typedef PathSnapper<transformed_path_t > snap_t ;
668
+ typedef PathNanRemover<transformed_path_t > nan_removed_t ;
669
+ typedef PathSnapper<nan_removed_t > snap_t ;
669
670
typedef agg::conv_curve<snap_t > curve_t ;
670
671
typedef agg::conv_stroke<curve_t > stroke_t ;
671
672
typedef agg::pixfmt_amask_adaptor<pixfmt, alpha_mask_type> pixfmt_amask_type;
@@ -693,15 +694,17 @@ RendererAgg::draw_markers(const Py::Tuple& args)
693
694
694
695
PathIterator marker_path (marker_path_obj);
695
696
transformed_path_t marker_path_transformed (marker_path, marker_trans);
696
- snap_t marker_path_snapped (marker_path_transformed,
697
+ nan_removed_t marker_path_nan_removed (marker_path_transformed, true , marker_path.has_curves ());
698
+ snap_t marker_path_snapped (marker_path_nan_removed,
697
699
gc.snap_mode ,
698
700
marker_path.total_vertices (),
699
701
gc.linewidth );
700
702
curve_t marker_path_curve (marker_path_snapped);
701
703
702
704
PathIterator path (path_obj);
703
705
transformed_path_t path_transformed (path, trans);
704
- snap_t path_snapped (path_transformed,
706
+ nan_removed_t path_nan_removed (path_transformed, false , false );
707
+ snap_t path_snapped (path_nan_removed,
705
708
SNAP_FALSE,
706
709
path.total_vertices (),
707
710
0.0 );
0 commit comments