summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 06eed5f)
raw | patch | inline | side by side (parent: 06eed5f)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Mar 2009 00:48:46 +0000 (00:48 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Mar 2009 00:48:46 +0000 (00:48 +0000) |
src/display/sodipodi-ctrl.cpp | patch | blob | history | |
src/display/sodipodi-ctrl.h | patch | blob | history |
index c26402743959bec45b8f34dcda5ef09b6f30f1ef..caa5fa6977830084b5d9585d552230f5e810ce9f 100644 (file)
ctrl->box.x0 = ctrl->box.y0 = ctrl->box.x1 = ctrl->box.y1 = 0;
ctrl->cache = NULL;
ctrl->pixbuf = NULL;
+
+ ctrl->_point = Geom::Point(0,0);
}
static void
}
void SPCtrl::moveto (Geom::Point const p) {
- sp_canvas_item_affine_absolute (SP_CANVAS_ITEM (this), Geom::Matrix(Geom::Translate (p)));
- _moved = true;
+ if (p != _point) {
+ sp_canvas_item_affine_absolute (SP_CANVAS_ITEM (this), Geom::Matrix(Geom::Translate (p)));
+ _moved = true;
+ }
+ _point = p;
}
index 634e9ff3ecad7271d802c1dbf7231ae6d4bf1e24..859735e4f77b2ed88a29f93abaf8348e8173ae3e 100644 (file)
GdkPixbuf * pixbuf;
void moveto(Geom::Point const p);
+ Geom::Point _point;
};
struct SPCtrlClass : public SPCanvasItemClass{