Code

check for cairo version
authortheadib <theadib@users.sourceforge.net>
Wed, 26 Dec 2007 23:02:26 +0000 (23:02 +0000)
committertheadib <theadib@users.sourceforge.net>
Wed, 26 Dec 2007 23:02:26 +0000 (23:02 +0000)
src/extension/internal/cairo-render-context.cpp

index 9a2cab829c9884bcf7ca30a9fe0aeca6c30e7c60..1697719d716735596c97eec1d8dfbf94ee58fc26 100644 (file)
@@ -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;