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

List:       kde-core-devel
Subject:    Re: compilation of koffice's karbon breaks
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-12-01 22:56:16
[Download RAW message or body]

-----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@mandrakesoft.com, faure@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-----

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

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