diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-15 00:01:54 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-15 00:01:54 +0000 |
| commit | 217ed18aeb2a0e518fbfb20c88af9be02cae6711 (patch) | |
| tree | fb7089f353edd85bdebbf1eba97b22418264f512 | |
| parent | don't call cairo_new_path in feed_pathvector_to_cairo (like the old feed_path... (diff) | |
| download | inkscape-217ed18aeb2a0e518fbfb20c88af9be02cae6711.tar.gz inkscape-217ed18aeb2a0e518fbfb20c88af9be02cae6711.zip | |
remove last calls to spcurve::get_length outside of spcurve. (canvas-bpath rendering code)
(bzr r6312)
| -rw-r--r-- | src/display/canvas-bpath.cpp | 4 |
1 files 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; |
