Code

* Remove unused variables
[inkscape.git] / src / display / sp-ctrlline.cpp
index 6715f890fc0ebd215b6640e9f6164c5da1dc855c..96bda98806a6ed2a0a7920528908906fe74fcc2a 100644 (file)
@@ -142,7 +142,12 @@ sp_ctrlline_update (SPCanvasItem *item, NR::Matrix const &affine, unsigned int f
     thePath->MoveTo(NR::Point(cl->s.x, cl->s.y) * affine);
     thePath->LineTo(NR::Point(cl->e.x, cl->e.y) * affine);
 
-    thePath->Convert(1.0);
+    NRRectL  area;
+    area.x0=(NR::ICoord)(double)item->x1;
+    area.x1=(NR::ICoord)(double)item->x2;
+    area.y0=(NR::ICoord)(double)item->y1;
+    area.y1=(NR::ICoord)(double)item->y2;
+    thePath->Convert(&area, 1.0);
     if ( cl->shp == NULL ) cl->shp=new Shape;
     thePath->Stroke(cl->shp,false,0.5,join_straight,butt_straight,20.0,false);
     cl->shp->CalcBBox();