From: knutux Date: Thu, 20 Apr 2006 07:13:38 +0000 (+0000) Subject: resolving compiler warnings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=73414d61d2a26490922f272008d3b4ba1c46e3b8;p=inkscape.git resolving compiler warnings --- diff --git a/src/display/sp-ctrlline.cpp b/src/display/sp-ctrlline.cpp index 463d32336..d6dbdf022 100644 --- a/src/display/sp-ctrlline.cpp +++ b/src/display/sp-ctrlline.cpp @@ -143,10 +143,10 @@ sp_ctrlline_update (SPCanvasItem *item, NR::Matrix const &affine, unsigned int f thePath->LineTo(NR::Point(cl->e.x, cl->e.y) * affine); NRRectL area; - area.x0=item->x1; - area.x1=item->x2; - area.y0=item->y1; - area.y1=item->y2; + area.x0=(double)item->x1; + area.x1=(double)item->x2; + area.y0=(double)item->y1; + area.y1=(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); diff --git a/src/livarot/Shape.cpp b/src/livarot/Shape.cpp index 178e8660e..145bbafe5 100644 --- a/src/livarot/Shape.cpp +++ b/src/livarot/Shape.cpp @@ -19,10 +19,10 @@ */ Shape::Shape() - : iData(NULL), + : qrsData(NULL), + iData(NULL), sTree(NULL), sEvts(NULL), - qrsData(NULL), _need_points_sorting(false), _need_edges_sorting(false), _has_points_data(false),