summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a5fec7)
raw | patch | inline | side by side (parent: 4a5fec7)
author | johncoswell <johncoswell@users.sourceforge.net> | |
Mon, 4 Sep 2006 15:46:12 +0000 (15:46 +0000) | ||
committer | johncoswell <johncoswell@users.sourceforge.net> | |
Mon, 4 Sep 2006 15:46:12 +0000 (15:46 +0000) |
diff --git a/src/arc-context.cpp b/src/arc-context.cpp
index 0b0aad79e563890d2fcea8120b8a992e920f0593..032d7febb7375f75f29cc257806bd02033e483ff 100644 (file)
--- a/src/arc-context.cpp
+++ b/src/arc-context.cpp
NR::Rect const r = Inkscape::snap_rectangular_box(desktop, ac->item, pt, ac->center, state);
+ sp_canvas_force_full_redraws(desktop->canvas, 1);
+
sp_arc_position_set(SP_ARC(ac->item),
r.midpoint()[NR::X], r.midpoint()[NR::Y],
r.dimensions()[NR::X] / 2, r.dimensions()[NR::Y] / 2);
_("Create ellipse"));
ac->item = NULL;
+
+ sp_canvas_clear_forced_full_redraws(desktop->canvas);
}
}
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index c050c888b0ffff0d17a2135d05d9b8b6ce65a76b..adfc5eb7aa061ec27418968ed6ae774b91d20baa 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
sp_canvas_item_hide(pc->cl1);
pc->_message_context->clear();
pc->_message_context->flash(Inkscape::NORMAL_MESSAGE, _("Drawing cancelled"));
+
+ sp_canvas_clear_forced_full_redraws(pc->desktop->canvas);
}
/**
@@ -1034,6 +1036,8 @@ spdc_pen_set_subsequent_point(SPPenContext *const pc, NR::Point const p, bool st
g_assert( pc->npoints != 0 );
/* todo: Check callers to see whether 2 <= npoints is guaranteed. */
+ sp_canvas_force_full_redraws(pc->desktop->canvas, 4);
+
pc->p[2] = p;
pc->p[3] = p;
pc->p[4] = p;
@@ -1050,6 +1054,7 @@ spdc_pen_set_subsequent_point(SPPenContext *const pc, NR::Point const p, bool st
sp_curve_lineto(pc->red_curve, p);
is_curve = false;
}
+
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), pc->red_curve);
if (statusbar) {
pc->green_anchor = sp_draw_anchor_destroy(pc->green_anchor);
}
+ sp_canvas_clear_forced_full_redraws(desktop->canvas);
+
pen_enable_events(pc);
}
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index b03cdeead7c08dc5aee4bd0a3be52900a8587bfc..b337b53a1f5bd5e3e819f4c5cb2d677bdfee5883 100644 (file)
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
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);
_("Create rectangle"));
rc->item = NULL;
+
+ sp_canvas_clear_forced_full_redraws(dt->canvas);
}
}
diff --git a/src/rubberband.cpp b/src/rubberband.cpp
index cc0e70a7444c564dc72cacd8e58f3288b33ead26..49fb34592bd935cf5d283e01b2c594dfa233ed03 100644 (file)
--- a/src/rubberband.cpp
+++ b/src/rubberband.cpp
void Inkscape::Rubberband::stop()
{
+ sp_canvas_clear_forced_full_redraws(_desktop->canvas);
+
if (_canvas) {
gtk_object_destroy((GtkObject *) _canvas);
_canvas = NULL;
_desktop->scroll_to_point(&p);
_end = p;
+ sp_canvas_force_full_redraws(_desktop->canvas, 2);
+
_canvas->setRectangle(NR::Rect(_start, _end));
}
diff --git a/src/spiral-context.cpp b/src/spiral-context.cpp
index 1dc6bd6cbbd9064e8a89ef8b2cc35a075477452c..e878154ba47dc493328aa8f14c64e87081ae4aad 100644 (file)
--- a/src/spiral-context.cpp
+++ b/src/spiral-context.cpp
arg = sp_round(arg, M_PI/snaps);
}
+ sp_canvas_force_full_redraws(desktop->canvas, 1);
+
/* Fixme: these parameters should be got from dialog box */
sp_spiral_position_set(spiral, p0[NR::X], p0[NR::Y],
/*expansion*/ sc->exp,
/* TODO: annotate */ "spiral-context.cpp:462");
sc->item = NULL;
+
+ sp_canvas_clear_forced_full_redraws(desktop->canvas);
}
}
diff --git a/src/star-context.cpp b/src/star-context.cpp
index 74b252860ee13c083eec82d085e8abb5f9573f9b..fc1d710528ed07b5df78ee3a3b58428f0eb3eb25 100644 (file)
--- a/src/star-context.cpp
+++ b/src/star-context.cpp
arg1 = sp_round(arg1, M_PI / snaps);
}
+ sp_canvas_force_full_redraws(desktop->canvas, 1);
+
sp_star_position_set(star, sc->magnitude, p0, r1, r1 * sc->proportion,
arg1, arg1 + M_PI / sides, sc->isflatsided, sc->rounded, sc->randomized);
/* TODO: annotate */ "star-context.cpp:474");
sc->item = NULL;
+
+ sp_canvas_clear_forced_full_redraws(desktop->canvas);
}
}