From 7270ccfe0aa3a2671a5ed9ef6a0aeb67845177df Mon Sep 17 00:00:00 2001 From: Peter Silva Date: Sun, 21 Mar 1999 23:34:44 +0000 Subject: [PATCH] This is a tentative bug fix for bug #942. This fixes a lot of problems in the 1.1_BRANCH stream. Unfortunately, I don't have a HEAD environment to test, so I'm keeping my fingers crossed. Lars said something about moving from characters to pixels, and this problem seems to be related to that. We'll probably remove this crude hack later, when the cause of the problem (returning events with x' > max columns) is fixed. svn path=/trunk/kdebase/konsole/; revision=18402 --- src/TEScreen.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TEScreen.C b/src/TEScreen.C index 39826f76..8b954bab 100644 --- a/src/TEScreen.C +++ b/src/TEScreen.C @@ -173,6 +173,9 @@ void TEScreen::setSelExtentXY(const int x, const int y) } else { + /* FIXME, HACK to correct for x too far to the right... */ + if (( x == columns )|| (x == 0)) l--; + sel_TL = sel_begin; sel_BR = l; }