[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Bug in \m
From: |
Colin Watson |
Subject: |
Re: [Groff] Bug in \m |
Date: |
Wed, 18 Sep 2002 11:19:30 +0100 |
User-agent: |
Mutt/1.4i |
On Wed, Sep 18, 2002 at 10:02:29AM +0200, Bob Diertens wrote:
> In developing the next release of gpresent, I discovered a bug
> in \m
> Consider this
>
> black\m[blue]blue\m[red]red\m[]blue\m[]red
>
> I expect blue to be in blue and red to be in red, but the last
> blue and red are in black.
> It seems that \m[] changes back to the default color instead of
> the previous one.
Here's a patch:
--- src/roff/troff/env.cc.orig Wed Sep 18 11:13:36 2002
+++ src/roff/troff/env.cc Wed Sep 18 11:14:22 2002
@@ -560,7 +560,7 @@
{
if (interrupted)
return;
- curenv->prev_glyph_color = curenv->prev_glyph_color;
+ curenv->prev_glyph_color = curenv->cur_glyph_color;
curenv->cur_glyph_color = c;
}
@@ -568,7 +568,7 @@
{
if (interrupted)
return;
- curenv->prev_fill_color = curenv->prev_fill_color;
+ curenv->prev_fill_color = curenv->cur_fill_color;
curenv->cur_fill_color = c;
}
Cheers,
--
Colin Watson address@hidden