From: miklosh Date: Thu, 3 Jan 2008 12:08:11 +0000 (+0000) Subject: Fixed messed up transformations because of a missing cairo_restore() and removed... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b11b6feeb38fd241fa7da878a774d1b52131d8fe;p=inkscape.git Fixed messed up transformations because of a missing cairo_restore() and removed some debug stuff --- diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp index 3df9dff45..b3b025cfb 100644 --- a/src/extension/internal/cairo-render-context.cpp +++ b/src/extension/internal/cairo-render-context.cpp @@ -1230,7 +1230,7 @@ CairoRenderContext::renderPath(NRBPath const *bpath, SPStyle const *style, NRRec cairo_set_fill_rule(_cr, CAIRO_FILL_RULE_WINDING); } cairo_fill(_cr); - cairo_surface_write_to_png (_surface, "gtar2.png"); + TEST(cairo_surface_write_to_png (_surface, "pathmask.png")); } return true; } @@ -1424,11 +1424,7 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, NRMatrix const *font_matrix } else { cairo_set_fill_rule(_cr, CAIRO_FILL_RULE_WINDING); } - cairo_set_source_rgba (_cr, 1.0, 1.0, 1.0, 1.0); - cairo_rectangle (_cr, 0, 0, 30, 40); - cairo_fill (_cr); _showGlyphs(_cr, font, glyphtext, FALSE); - //cairo_fill(_cr); } else { // just add the glyph paths to the current context _showGlyphs(_cr, font, glyphtext, TRUE); @@ -1458,6 +1454,8 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, NRMatrix const *font_matrix #else (void)size; (void)fc_pattern; + + cairo_restore(_cr); #endif return true;