diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-10-20 21:49:40 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-10-25 13:41:57 +0100 |
commit | a07e8231a5cd3e12f7120486098479ab6ae6bcc2 (patch) | |
tree | 8dc13544a6c616e0438a684aba64991381fca2eb /canvas/source | |
parent | 6328bfd857dc15d6a7853ef04fc797bf1288ccf9 (diff) |
gtk3: fix cairo canvas crash for non X (or svp) backend
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 ); } |