summaryrefslogtreecommitdiff
path: root/src/PSEditWidget.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-11-08 18:54:54 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-11-08 18:54:54 +0000
commit117b0e0eef260bc4dd9c6d3c9a3ea51d3c4fa342 (patch)
treeb9104d078e8b55314c84ba026f8384b379bdab96 /src/PSEditWidget.cxx
parente8cd2063669a04e3782b187fdd0be336efb157db (diff)
fix damaging after scrolling
fix damaging after scrolling
Diffstat (limited to 'src/PSEditWidget.cxx')
-rw-r--r--src/PSEditWidget.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx
index 9d20618..b235941 100644
--- a/src/PSEditWidget.cxx
+++ b/src/PSEditWidget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditWidget.cxx,v 1.27 2004/11/08 19:36:14 hofmann Exp $"
+// "$Id: PSEditWidget.cxx,v 1.28 2004/11/08 19:54:54 hofmann Exp $"
//
// PSEditWidget routines.
//
@@ -284,12 +284,12 @@ int PSEditWidget::replace_tag(char *tag, char *text) {
}
int PSEditWidget::bb_x(PSEditText *t) {
- return t->get_x() - 10;
+ return t->get_x() + x() - 10;
}
int PSEditWidget::bb_y(PSEditText *t) {
fl_font(FLPSED_FONT, t->get_size());
- return t->get_y() - fl_height() - 20;
+ return t->get_y() - fl_height() + y() - 20;
}
int PSEditWidget::bb_w(PSEditText *t) {