From: johanengelen Date: Tue, 15 Jul 2008 00:01:54 +0000 (+0000) Subject: remove last calls to spcurve::get_length outside of spcurve. (canvas-bpath rendering... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9c4407687f84986e58ea3f4a65281cb7e4e243e3;p=inkscape.git remove last calls to spcurve::get_length outside of spcurve. (canvas-bpath rendering code) --- diff --git a/src/display/canvas-bpath.cpp b/src/display/canvas-bpath.cpp index ac3779029..9708a66f0 100644 --- a/src/display/canvas-bpath.cpp +++ b/src/display/canvas-bpath.cpp @@ -139,7 +139,7 @@ sp_canvas_bpath_render (SPCanvasItem *item, SPCanvasBuf *buf) if ( !cbp->curve || ((cbp->stroke_rgba & 0xff) == 0 && (cbp->fill_rgba & 0xff) == 0 ) || - cbp->curve->get_length() <= 1) + cbp->curve->get_segment_count() < 1) return; if (!buf->ct) @@ -182,7 +182,7 @@ sp_canvas_bpath_point (SPCanvasItem *item, NR::Point p, SPCanvasItem **actual_it if ( !cbp->curve || ((cbp->stroke_rgba & 0xff) == 0 && (cbp->fill_rgba & 0xff) == 0 ) || - cbp->curve->get_length() <= 1) + cbp->curve->get_segment_count() < 1) return NR_HUGE; double width = 0.5;