diff options
Diffstat (limited to 'canvas/source')
-rw-r--r-- | canvas/source/cairo/cairo_xlib_cairo.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/canvas/source/cairo/cairo_xlib_cairo.cxx b/canvas/source/cairo/cairo_xlib_cairo.cxx index a0569ab5a442..8e9120d944d5 100644 --- a/canvas/source/cairo/cairo_xlib_cairo.cxx +++ b/canvas/source/cairo/cairo_xlib_cairo.cxx @@ -55,6 +55,9 @@ namespace cairo return false; Display* pDisplay = (Display*)pOutDev->GetSystemGfxData().pDisplay; + if( !pDisplay ) + return false; + int nDummy; return XQueryExtension( pDisplay, "RENDER", &nDummy, &nDummy, &nDummy ); } |