mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[hb-cairo] Fixes for sweep gradients
Make reversed angles not infloop, and cap the number of interval repetitions at 1000. Fixes: https://github.com/harfbuzz/harfbuzz/issues/4055
This commit is contained in:
1 parent
fcb5111cc6
commit
47baa1da6b
1 file changed
+2
-1
@@ -723,8 +723,9 @@ _hb_cairo_add_sweep_gradient_patches (hb_color_stop_t *stops,
|
||||
}
|
||||
|
||||
//assert (angles[0] + k * span <= 0 && 0 < angles[n_stops - 1] + k * span);
|
||||
span = fabs (span);
|
||||
|
||||
for (unsigned l = k; 1; l++)
|
||||
for (unsigned l = k; l < 1000; l++)
|
||||
{
|
||||
for (unsigned i = 1; i < n_stops; i++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user