From 9c4407687f84986e58ea3f4a65281cb7e4e243e3 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Tue, 15 Jul 2008 00:01:54 +0000 Subject: [PATCH] remove last calls to spcurve::get_length outside of spcurve. (canvas-bpath rendering code) --- src/display/canvas-bpath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2