[PATCH] Fix Segmentation Fault when clipping to non-rect items.

4 views
Skip to first unread message

Eduardo Fleury

unread,
Jan 7, 2009, 6:42:38 PM1/7/09
to qe...@googlegroups.com
Hi guys, that's an old patch that we had discussed about but for some
reason was left unapplied.

The setClipTo method in QEdjeRealPart was doing an static cast of any
QZionObject
to a QZionRectangle. If a bad EDC tried to clip a part to anything
other than a Rectangle
we would fall into a SegFault situation.

Added check to print a Warning and ignore the clipping requirement.

Eduardo M. Fleury
OpenBossa Labs - INdT
http://www.openbossa.org/

0001-Fix-Segmentation-Fault-when-clipping-to-non-rect-ite.patch

Artur Souza (MoRpHeUz)

unread,
Jan 9, 2009, 1:35:46 PM1/9/09
to qe...@googlegroups.com
Hey

On Wed, Jan 7, 2009 at 8:42 PM, Eduardo Fleury
<eduardo...@openbossa.org> wrote:
> Hi guys, that's an old patch that we had discussed about but for some
> reason was left unapplied.

Applied, thanks!

--
-------------------------------------------------------
Artur Duque de Souza
OpenBossa Research Labs
INdT - Instituto Nokia de Tecnologia
-------------------------------------------------------
Blog: http://labs.morpheuz.eng.br/blog/
PGP: 0xDBEEAAC3 @ wwwkeys.pgp.net
-------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages