Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Fri, Feb 11, 2005 at 06:33:14PM +0100, [EMAIL PROTECTED] wrote:
>> When the cursor is to the very right of an inset, it's drawn outside of the 
>> red
>> box. It looks like it's not in the inset: very, very confusing.
>
| Patch attached. Please apply.
>
>
| --- bufferview_funcs.C.orig   2005-02-13 07:43:47.000000000 +0100
| +++ bufferview_funcs.C        2005-02-13 07:43:52.000000000 +0100
| @@ -174,7 +174,8 @@
|               y += par.rows()[rit].height();
|       y += par.rows()[par.pos2row(sl.pos())].ascent();
|       x += dit.bottom().text()->cursorX(dit.bottom());
| -     return Point(x,y);
| +     --x;

Why this extra line and not just:

x += dit.bottom().text()->cursorX(dit.bottom()) - 1;

??

-- 
        Lgb

Reply via email to