diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-12-19 22:50:00 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-12-19 22:50:00 +0000 |
| commit | 3e685ce994864fa09961c26761d5bfbd3f779241 (patch) | |
| tree | ad209f50f76ba79061343b27eda26c6b7ab40fed /src/display | |
| parent | guides: switch from using one position coordinate to Geom::Point point_on_line (diff) | |
| download | inkscape-3e685ce994864fa09961c26761d5bfbd3f779241.tar.gz inkscape-3e685ce994864fa09961c26761d5bfbd3f779241.zip | |
optimize guide canvasupdating
(bzr r4259)
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/guideline.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |
