From: theadib Date: Wed, 26 Dec 2007 23:02:26 +0000 (+0000) Subject: check for cairo version X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df413c27bf29b1738765699fb50b9178bc01b977;p=inkscape.git check for cairo version --- diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp index 9a2cab829..1697719d7 100644 --- a/src/extension/internal/cairo-render-context.cpp +++ b/src/extension/internal/cairo-render-context.cpp @@ -693,7 +693,7 @@ CairoRenderContext::setupSurface(double width, double height) #ifdef CAIRO_HAS_PS_SURFACE case CAIRO_SURFACE_TYPE_PS: surface = cairo_ps_surface_create_for_stream(Inkscape::Extension::Internal::_write_callback, _stream, width, height); -#if (CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 5, 2)) +#if (CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 5, 2)) cairo_ps_surface_restrict_to_level (surface, (cairo_ps_level_t)_ps_level); #endif break;