--Boundary-00=_excU/N0K7avTgvG Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello all=20 I found some problems with flipping pie objects. ( no flipping when angle = =3D=20 180=B0 || 270=B0 || 360=B0, after 2 time horizontal flipping of a pie with = angle=20 45=B0 and length 170=B0 no more flipping possible).=20 The attached patch solves the problems and simpifies the code. Is it ok to commit? Thorsten --Boundary-00=_excU/N0K7avTgvG Content-Type: text/x-diff; charset="us-ascii"; name="patch48" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patch48" Index: kppieobject.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/kpresenter/kppieobject.cc,v retrieving revision 1.42 diff -u -3 -p -r1.42 kppieobject.cc =2D-- kppieobject.cc 27 Aug 2003 14:45:39 -0000 1.42 +++ kppieobject.cc 31 Aug 2003 10:16:08 -0000 @@ -167,24 +167,15 @@ void KPPieObject::flip( bool horizontal=20 KP2DObject::flip( horizontal ); if ( horizontal ) { =2D if ( p_angle <=3D 90*16 ) =2D p_angle =3D (360*16 - p_angle -p_len); =2D else if ( p_angle >90*16 && p_angle <180*16 ) =2D p_angle =3D (p_angle + 90*16 + p_len) ; =2D else if ( p_angle >180*16 && p_angle <270*16 ) =2D p_angle =3D (360*16 - (p_angle + p_len))%(360*16); =2D else if ( p_angle >270*16 && p_angle <360*16 ) =2D p_angle =3D (360*16-p_angle -p_len)%(360*16); + p_angle =3D 360*16 - p_angle -p_len; } else { =2D if ( p_angle <=3D 90*16 ) =2D p_angle =3D 180*16- p_angle - p_len; =2D else if ( p_angle >90*16 && p_angle <180*16 ) =2D p_angle =3D 180*16 - p_angle - p_len ; =2D else if ( p_angle >180*16 && p_angle <270*16 ) =2D p_angle =3D 360*16 - (p_angle - 180*16) - p_len; =2D else if ( p_angle >270*16 && p_angle <360*16 ) =2D p_angle =3D 180*16+ (360*16 - (p_angle+p_len)); + p_angle =3D 180*16 - p_angle - p_len; + } + =20 + // angle smaller 0=B0 + while ( p_angle < 0 ) { + p_angle +=3D 360*16; } } --Boundary-00=_excU/N0K7avTgvG Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel --Boundary-00=_excU/N0K7avTgvG--