summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-08-15 20:49:27 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-08-15 20:49:27 +0200
commit70abbfc093c470341e82b61adb7485d47e8a5dc7 (patch)
treebc6cdd08db3cf2737cb6e928af9ebae258a6ee27
parent7fb24accd94284e0e203f60443faab060b938e77 (diff)
implement PSEditWidget::rel_move() with PSEditWidget::move()
-rw-r--r--src/PSEditWidget.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx
index 231d720..31230f2 100644
--- a/src/PSEditWidget.cxx
+++ b/src/PSEditWidget.cxx
@@ -206,20 +206,10 @@ void PSEditWidget::move(int x1, int y1) {
void PSEditWidget::rel_move(int dx, int dy) {
PSEditText *t;
- int old_bbx, old_bby, old_bbw, old_bbh;
t = model->get_cur_text();
if (t) {
- old_bbx = bb_x(t);
- old_bby = bb_y(t);
- old_bbw = bb_w(t);
- old_bbh = bb_h(t);
-
- model->move(t->get_x() + dx, t->get_y() + dy);
- mod++;
-
- damage(4, old_bbx, old_bby, old_bbw, old_bbh);
- damage(4, bb_x(t), bb_y(t), bb_w(t), bb_h(t));
+ move(ps_to_display_x(t->get_x() + dx), ps_to_display_y(t->get_y() + dy));
}
}