compilation of koffice's karbon breaks

David Faure david at mandrakesoft.com
Sun Dec 1 21:38:47 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 30 November 2002 00:55, Andreas Sturm wrote:
> Hi!
> 
> I am compiling koffice 1.2 for kde 3.0.5 at the moment. The compile run breaks
> at karbon/core/vcanvas.cc:
> 
> cc-1152 CC: ERROR File = vcanvas.cc, Line = 222
>   Expression must be an lvalue or a function designator.
> 
>                 m_part->document().draw( p, &KoRect::fromQRect( rect ) );

Try this
KoRect kor = KoRect::fromQRect( rect );
m_part->document().draw( p, &kor );

I hope this is temporary code though, fromQRect is always a hack (since
QRect is in pixels and KoRect is meant to be used for pt coordinates...).

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE96oFn72KcVAmwbhARArC/AJ9bMs6zMediQHzIPuSuU1+ffMfMRgCglMp/
j+L4o14sM9CFq1pYcRBod3U=
=lzJO
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list