compilation of koffice's karbon breaks

David Faure david at mandrakesoft.com
Sun Dec 1 22:56:16 GMT 2002


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

On Sunday 01 December 2002 22:55, Andreas Sturm wrote:
> Hi David!
> 
> This worked for vcanvas.cc but it does not work for karbon_view.cc:
> 
> // KoRect corect = KoRect::fromQRect( QRect( 0, 0, width(), height() ) );
>                         KoRect corect(0, 0, width(), height());
>                         i.current()->draw( &p, &corect );
> 
> leads to
> 
> cc-1020 CC: ERROR File = karbon_view.cc, Line = 282
>   The identifier "corect" is undefined.
> 
>                  i.current()->draw( &p, &corect(0, 0, width(),height()) );
>                                          ^
> 
> 1 error detected in the compilation of "karbon_view.cc".
> 
> Why does this happen in this case or what is different to the first one?

You forgot to remove the arguments (compare your pasted code with
the error line .... the error line has (0,0,width(),height()) after corect.
I think you forgot to save before compiling, or so.

- -- 
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)

iD8DBQE96pOQ72KcVAmwbhARAqeDAJ0etIsKPk+mi+OImaDzwVIOTyFiowCfXLEa
3aFtBvj4NVHnJcRe8gKZ3YQ=
=OPKq
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list