=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 21 November 2002 21:11, Philipp M=FCller wrote: > The reimplementation in the apps is not needed with this approach. There = is=20 > only one place where the geometry is set. It's in setGeometry() ;-) If we= =20 > place here the check, it will never become 0 again. > > See patch: >=20 > Index: koChild.cc > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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 =3D framePointArray(); >=20 > d->m_geometry =3D 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 ); >=20 > updateMatrix(); Excellent - assuming this is always in unzoomed coordinates. =2D --=20 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/ =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE93T8n72KcVAmwbhARAlq4AJ91CVkKArKrla7V2Ie5nuHmt/ZNFgCgpBzo Y9j5M39VIvllO5ORTc7/SuI=3D =3DdXiI =2D----END PGP SIGNATURE----- _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel