[PATCH] font.cpp
Pascal Létourneau
pletourn at globetrotter.net
Mon Dec 2 06:01:48 GMT 2002
Hi
Selecting text in a paragraph leaves a non-selected space between the lines.
David likes it. I think it's odd. What do you think?
Pascal Létourneau
Index: font.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/rendering/font.cpp,v
retrieving revision 1.16
diff -u -3 -p -r1.16 font.cpp
--- font.cpp 2002/10/21 22:04:14 1.16
+++ font.cpp 2002/11/30 16:28:44
@@ -83,7 +83,7 @@ void Font::drawText( QPainter *p, int x,
if ( to==-1 || (i>=from && i<to) )
{
if ( bg.isValid() )
- p->fillRect( x, y-fm.ascent(), chw, fm.height(), bg );
+ p->fillRect( x, y-fm.ascent(), chw, fm.lineSpacing(), bg
);
p->drawText( x, y, qstr, pos+i, 1, d );
}
More information about the kfm-devel
mailing list