Bug 315061 - nsSVGCairoPathBuilder::ClosePath wasn't returning new point.

r=scooter
This commit is contained in:
tor%cs.brown.edu 2005-11-04 17:02:26 +00:00
parent 916cb2bfa4
commit 0f2999bf98

View File

@ -259,6 +259,12 @@ NS_IMETHODIMP
nsSVGCairoPathBuilder::ClosePath(float *newX, float *newY)
{
cairo_close_path(mCR);
double x, y;
cairo_get_current_point(mCR, &x, &y);
*newX = x;
*newY = y;
return NS_OK;
}