Bug 775228. r=joe

This commit is contained in:
Matt Woodrow 2012-10-25 12:04:41 +13:00
parent 64df41fa2a
commit e813ffaf37

View File

@ -148,7 +148,7 @@ int32_t gfxQuartzSurface::GetDefaultContextFlags() const
already_AddRefed<gfxImageSurface> gfxQuartzSurface::GetAsImageSurface()
{
cairo_surface_t *surface = cairo_quartz_surface_get_image(mSurface);
if (!surface)
if (!surface || cairo_surface_status(surface))
return nullptr;
nsRefPtr<gfxASurface> img = Wrap(surface);