summaryrefslogtreecommitdiffstats
path: root/src/display/nr-arena-shape.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2011-06-22 10:07:58 +0000
committerJon A. Cruz <jon@joncruz.org>2011-06-22 10:07:58 +0000
commit8640e3a8755e772cc7982a9d6f8a47c6ee0dae00 (patch)
tree2f9cdb1b9e13dc49a810fdfca4eb575610a948cb /src/display/nr-arena-shape.cpp
parentRevision 10333 introduced dependency on gtk version 2.24 which is currently n... (diff)
downloadinkscape-8640e3a8755e772cc7982a9d6f8a47c6ee0dae00.tar.gz
inkscape-8640e3a8755e772cc7982a9d6f8a47c6ee0dae00.zip
Warning cleanup.
(bzr r10339)
Diffstat (limited to 'src/display/nr-arena-shape.cpp')
-rw-r--r--src/display/nr-arena-shape.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp
index f278413b2..eb7a30e58 100644
--- a/src/display/nr-arena-shape.cpp
+++ b/src/display/nr-arena-shape.cpp
@@ -394,20 +394,24 @@ nr_arena_shape_render(cairo_t *ct, NRArenaItem *item, NRRectL *area, NRPixBlock
}
-static guint
-nr_arena_shape_clip(cairo_t *ct, NRArenaItem *item, NRRectL *area)
+static guint nr_arena_shape_clip(cairo_t *ct, NRArenaItem *item, NRRectL * /*area*/)
{
+ guint result = 0;
+
// NOTE: for now this is incorrect, because it doesn't honor clip-rule,
// and will be incorrect for nested clipping paths.
NRArenaShape *shape = NR_ARENA_SHAPE(item);
- if (!shape->curve) return item->state;
-
- cairo_save(ct);
- ink_cairo_transform(ct, shape->ctm);
- feed_pathvector_to_cairo(ct, shape->curve->get_pathvector());
- cairo_restore(ct);
+ if (!shape->curve) {
+ result = item->state;
+ } else {
+ cairo_save(ct);
+ ink_cairo_transform(ct, shape->ctm);
+ feed_pathvector_to_cairo(ct, shape->curve->get_pathvector());
+ cairo_restore(ct);
- return item->state;
+ result = item->state;
+ }
+ return result;
}
static NRArenaItem *
@@ -508,7 +512,7 @@ nr_arena_shape_pick(NRArenaItem *item, Geom::Point p, double delta, unsigned int
* curve and adds it to the shape. Finally, it requests an update of the
* arena for the shape.
*/
-void nr_arena_shape_set_path(NRArenaShape *shape, SPCurve *curve,bool justTrans)
+void nr_arena_shape_set_path(NRArenaShape *shape, SPCurve *curve, bool /*justTrans*/)
{
g_return_if_fail(shape != NULL);
g_return_if_fail(NR_IS_ARENA_SHAPE(shape));