diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-05-06 16:59:33 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-05-06 16:59:33 +0000 |
| commit | e426b2569dcd44506b9ff7029559b2e48708fa46 (patch) | |
| tree | 4d5c50442b4439e333a30683091863f5434b521e /src/widgets/ruler.cpp | |
| parent | Don't set colormap in ruler (diff) | |
| download | inkscape-e426b2569dcd44506b9ff7029559b2e48708fa46.tar.gz inkscape-e426b2569dcd44506b9ff7029559b2e48708fa46.zip | |
Drop nested cairo_t in ruler
(bzr r11335)
Diffstat (limited to 'src/widgets/ruler.cpp')
| -rw-r--r-- | src/widgets/ruler.cpp | 4 |
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) |
