diff options
| author | John Bintz <me@johnbintz.com> | 2006-09-04 15:46:12 +0000 |
|---|---|---|
| committer | johncoswell <johncoswell@users.sourceforge.net> | 2006-09-04 15:46:12 +0000 |
| commit | e7f783b5e2bed01e633cfffd15f3da3e4d5b874d (patch) | |
| tree | 209972688677279a6ad7adfcb4ab575bf696f051 /src/rect-context.cpp | |
| parent | Add ability to force canvas to perform a full, non-interruptible redraw (diff) | |
| download | inkscape-e7f783b5e2bed01e633cfffd15f3da3e4d5b874d.tar.gz inkscape-e7f783b5e2bed01e633cfffd15f3da3e4d5b874d.zip | |
Force non-interruptible canvas redraws to ensure accurate display while creating objects
(bzr r1679)
Diffstat (limited to '')
| -rw-r--r-- | src/rect-context.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp index b03cdeead..b337b53a1 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -455,6 +455,8 @@ static void sp_rect_drag(SPRectContext &rc, NR::Point const pt, guint state) NR::Rect const r = Inkscape::snap_rectangular_box(desktop, rc.item, pt, rc.center, state); + sp_canvas_force_full_redraws(desktop->canvas, 2); + sp_rect_position_set(SP_RECT(rc.item), r.min()[NR::X], r.min()[NR::Y], r.dimensions()[NR::X], r.dimensions()[NR::Y]); if ( rc.rx != 0.0 ) { sp_rect_set_rx (SP_RECT(rc.item), TRUE, rc.rx); @@ -490,6 +492,8 @@ static void sp_rect_finish(SPRectContext *rc) _("Create rectangle")); rc->item = NULL; + + sp_canvas_clear_forced_full_redraws(dt->canvas); } } |
