[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: kword inline chars
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-03-17 18:27:05
[Download RAW message or body]

On Sunday 17 March 2002 13:32, Thomas Zander wrote:
> What about this:
> 
> Index: qrichtext.cpp
> ===================================================================
> RCS file: /home/kde/koffice/lib/kotext/qrichtext.cpp,v
> retrieving revision 1.35
> diff -u -3 -p -r1.35 qrichtext.cpp
> --- qrichtext.cpp	2002/03/07 13:19:53	1.35
> +++ qrichtext.cpp	2002/03/17 12:32:06
> @@ -4246,6 +4246,7 @@ void QTextParag::paint( QPainter &painte
>  		    chr->customItem()->draw( &painter, chr->x, cy, clipx - r.x(), clipy - r.y(), clipw, cliph, cg,
>  					     nSels && selectionStarts[ 0 ] <= i && selectionEnds[ 0 ] >= i );
>  		    paintStart = i+1;
> +		    qstr.replace(i,1," ");
>  		    paintEnd = -1;
>  		    lastFormat = chr->format();
>  		    lastY = cy;
> 
> It seems that the qstr (which is a toString of the parag) is given plain to the 
> QTextParag::drawParagString().
> So this seems the easiest solution. 
Looks correct to me. QRT itself uses spaces for customitems, and that's why
this problem only affects KOffice.

> Or should the toString be fixed?
Don't change toString, it's used for saving too.

Thanks!

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic