Code

remove last calls to spcurve::get_length outside of spcurve. (canvas-bpath rendering...
authorjohanengelen <johanengelen@users.sourceforge.net>
Tue, 15 Jul 2008 00:01:54 +0000 (00:01 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Tue, 15 Jul 2008 00:01:54 +0000 (00:01 +0000)
src/display/canvas-bpath.cpp

index ac3779029d6e093471583f9683af81ac9af8f92f..9708a66f0e03e3887be6970f2d7c97a61f10a61d 100644 (file)
@@ -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;