gtk_render_line doesn't work if y0 == y1 or x1 == x0

Bug #833958 reported by xapantu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unico
Fix Released
Undecided
Unassigned
Unity Foundations
Fix Released
Undecided
Andrea Cimitan

Bug Description

We can't draw an horizontal line or a vertical one! Unico tries to scale a gradient to y0 - y1, x0 -x1, which "crashs" (ok, it is not a crash, but it stops drawing) if y0 == y1 or x0 == y1.

See attached branch.

xapantu (xapantu)
description: updated
Revision history for this message
Andrea Cimitan (cimi) wrote :

mind testing the fix in trunk?

Changed in unico:
status: New → Fix Committed
Changed in unity-foundations:
status: New → Fix Committed
Ted Gould (ted)
Changed in unity-foundations:
milestone: none → oneiric-beta-2
Andrea Cimitan (cimi)
Changed in unity-foundations:
assignee: nobody → Andrea Cimitan (cimi)
Revision history for this message
xapantu (xapantu) wrote :

It works fine, thanks :)

Andrea Cimitan (cimi)
Changed in unico:
status: Fix Committed → Fix Released
Changed in unity-foundations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.