mirror of https://github.com/GNOME/gimp.git
Argh, this is getting silly.
2004-01-28 Simon Budig <simon@gimp.org> Argh, this is getting silly. * app/core/gimpscanconvert.c: Fix dumb bug I introduced while fixing bug #132036. Instead of always closing a polyline to the first point of the vpath close to the first point of the current polyline I'll close #132036 for the third time now, feel free to reopen it when bugs appear...
This commit is contained in:
parent
e498c09743
commit
857d114ace
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2004-01-28 Simon Budig <simon@gimp.org>
|
||||
|
||||
Argh, this is getting silly.
|
||||
|
||||
* app/core/gimpscanconvert.c: Fix dumb bug I introduced
|
||||
while fixing bug #132036. Instead of always closing a
|
||||
polyline to the first point of the vpath close to the
|
||||
first point of the current polyline
|
||||
|
||||
I'll close #132036 for the third time now, feel free to
|
||||
reopen it when bugs appear...
|
||||
|
||||
2004-01-27 Dave Neary <bolsh@gimp.org>
|
||||
|
||||
* plug-ins/common/tiff.c: Apply patch from Andrey Kiselev to
|
||||
|
|
|
@ -227,12 +227,16 @@ gimp_scan_convert_add_polyline (GimpScanConvert *sc,
|
|||
}
|
||||
}
|
||||
|
||||
if (closed && (prev.x != points[i].x || prev.y != points[i].y))
|
||||
/* close the polyline when needed */
|
||||
if (closed && (prev.x != points[0].x ||
|
||||
prev.y != points[0].y))
|
||||
{
|
||||
sc->vpath[sc->num_nodes] = sc->vpath[0];
|
||||
sc->vpath[sc->num_nodes].x = points[0].x;
|
||||
sc->vpath[sc->num_nodes].y = points[0].y;
|
||||
sc->vpath[sc->num_nodes].code = ART_LINETO;
|
||||
sc->num_nodes++;
|
||||
}
|
||||
|
||||
sc->vpath[sc->num_nodes].code = ART_END;
|
||||
sc->vpath[sc->num_nodes].x = 0.0;
|
||||
sc->vpath[sc->num_nodes].y = 0.0;
|
||||
|
|
Loading…
Reference in New Issue