[cairo-bugs] [Bug 25238] Dummy final move_to in PDF output
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Nov 23 17:38:21 PST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=25238
Lance <lliu at microstrategy.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lliu at microstrategy.com
--- Comment #1 from Lance <lliu at microstrategy.com> 2009-11-23 17:38:18 PST ---
This problem is caused by the following code snippet in cairo-path-fixed.c.
cairo_status_t
_cairo_path_fixed_close_path (cairo_path_fixed_t *path)
{
cairo_status_t status;
if (! path->has_current_point)
return CAIRO_STATUS_SUCCESS;
status = _cairo_path_fixed_add (path, CAIRO_PATH_OP_CLOSE_PATH, NULL, 0);
if (status)
return status;
status = _cairo_path_fixed_move_to (path,
path->last_move_point.x,
path->last_move_point.y);
if (status)
return status;
return CAIRO_STATUS_SUCCESS;
}
My suggestion is to check the surface type before calling
_cairo_path_fixed_move_to(). If the surface type is PDF, do not call
_cairo_path_fixed_move_to().
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list