From: johanengelen Date: Wed, 19 Dec 2007 22:50:00 +0000 (+0000) Subject: optimize guide canvasupdating X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f8aed1ebf61457891a424237d1726c83ac3cab94;p=inkscape.git optimize guide canvasupdating --- diff --git a/src/display/guideline.cpp b/src/display/guideline.cpp index fcddbb0e6..32d0e0c1e 100644 --- a/src/display/guideline.cpp +++ b/src/display/guideline.cpp @@ -141,7 +141,9 @@ static void sp_guideline_update(SPCanvasItem *item, NR::Matrix const &affine, un gl->point_on_line[Geom::Y] = affine[5]; if (gl->normal_to_line[Geom::Y] == 1.) { - sp_canvas_update_bbox (item, -1000000, -1000000, 1000000, 1000000); + sp_canvas_update_bbox (item, -1000000, gl->point_on_line[Geom::Y], 1000000, gl->point_on_line[Geom::Y] + 1); + } else if (gl->normal_to_line[Geom::X] == 1.) { + sp_canvas_update_bbox (item, gl->point_on_line[Geom::X], -1000000, gl->point_on_line[Geom::X]+1, 1000000); } else { sp_canvas_update_bbox (item, -1000000, -1000000, 1000000, 1000000); }