From 117b0e0eef260bc4dd9c6d3c9a3ea51d3c4fa342 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 8 Nov 2004 18:54:54 +0000 Subject: fix damaging after scrolling fix damaging after scrolling --- src/PSEditWidget.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3