From e426b2569dcd44506b9ff7029559b2e48708fa46 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Sun, 6 May 2012 17:59:33 +0100 Subject: Drop nested cairo_t in ruler (bzr r11335) --- src/widgets/ruler.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/widgets/ruler.cpp') diff --git a/src/widgets/ruler.cpp b/src/widgets/ruler.cpp index 729c5199c..edb9f4ef1 100644 --- a/src/widgets/ruler.cpp +++ b/src/widgets/ruler.cpp @@ -651,8 +651,6 @@ static void sp_ruler_real_draw_pos(SPRuler *ruler) /* If a backing store exists, restore the ruler */ if (priv->backing_store) { - cairo_t *cr = gdk_cairo_create(window); - #if GTK_CHECK_VERSION(3,0,0) cairo_set_source_surface(cr, priv->backing_store, 0, 0); #else @@ -660,8 +658,6 @@ static void sp_ruler_real_draw_pos(SPRuler *ruler) #endif cairo_rectangle (cr, priv->xsrc, priv->ysrc, bs_width, bs_height); cairo_fill (cr); - - cairo_destroy (cr); } if (priv->orientation == GTK_ORIENTATION_HORIZONTAL) -- cgit v1.2.3