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

List:       koffice-devel
Subject:    Re: Minimum size of embedded documents
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-11-21 20:16:39
[Download RAW message or body]

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

On Thursday 21 November 2002 21:11, Philipp Müller wrote:
> The reimplementation in the apps is not needed with this approach. There is 
> only one place where the geometry is set. It's in setGeometry() ;-) If we 
> place here the check, it will never become 0 again.
>
> See patch:
> 
> Index: koChild.cc
> ===================================================================
> RCS file: /home/kde/koffice/lib/kofficecore/koChild.cc,v
> retrieving revision 1.7
> diff -u -3 -p -r1.7 koChild.cc
> --- koChild.cc  2001/08/10 16:39:24     1.7
> +++ koChild.cc  2002/11/21 19:57:54
> @@ -75,6 +75,13 @@ void KoChild::setGeometry( const QRect &
>      d->m_old = framePointArray();
> 
>    d->m_geometry = rect;
> +
> +  //Childs should have a minimum size of 3, so they can be selected
> +  if( d->m_geometry.width() < 3 )
> +    d->m_geometry.setWidth( 3 );
> +
> +  if( d->m_geometry.height() < 3 )
> +    d->m_geometry.setHeight( 3 );
> 
>    updateMatrix();

Excellent - assuming this is always in unzoomed coordinates.

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

iD8DBQE93T8n72KcVAmwbhARAlq4AJ91CVkKArKrla7V2Ie5nuHmt/ZNFgCgpBzo
Y9j5M39VIvllO5ORTc7/SuI=
=dXiI
-----END PGP SIGNATURE-----

_______________________________________________
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