summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-05-06 16:59:33 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-05-06 16:59:33 +0000
commite426b2569dcd44506b9ff7029559b2e48708fa46 (patch)
tree4d5c50442b4439e333a30683091863f5434b521e /src
parentDon't set colormap in ruler (diff)
downloadinkscape-e426b2569dcd44506b9ff7029559b2e48708fa46.tar.gz
inkscape-e426b2569dcd44506b9ff7029559b2e48708fa46.zip
Drop nested cairo_t in ruler
(bzr r11335)
Diffstat (limited to 'src')
-rw-r--r--src/widgets/ruler.cpp4
1 files changed, 0 insertions, 4 deletions
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)