diff --git a/mozilla/widget/src/gtk2/nsWindow.cpp b/mozilla/widget/src/gtk2/nsWindow.cpp index 9e0d18739f3..32d3a879e70 100644 --- a/mozilla/widget/src/gtk2/nsWindow.cpp +++ b/mozilla/widget/src/gtk2/nsWindow.cpp @@ -1722,6 +1722,9 @@ nsWindow::OnExposeEvent(GtkWidget *aWidget, GdkEventExpose *aEvent) bufferPixmapSurface = new gfxXlibSurface(display, drawable, XVisual, gfxIntSize(boundsRect.width, boundsRect.height)); + if (bufferPixmapSurface && bufferPixmapSurface->CairoStatus()) { + bufferPixmapSurface = nsnull; + } if (bufferPixmapSurface) { bufferPixmapSurface->SetDeviceOffset(gfxPoint(-boundsRect.x, -boundsRect.y)); nsCOMPtr newRC;