From a370f036ddecd686df42c69fb5c490f54db1c776 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 29 Jun 2008 17:21:58 +0000 Subject: [PATCH] even with zero opacity, paths must be selectable in outline mode --- src/display/nr-arena-shape.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index 7bd80c732..6974b0008 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -1068,14 +1068,16 @@ nr_arena_shape_pick(NRArenaItem *item, NR::Point p, double delta, unsigned int / if (!shape->curve) return NULL; if (!shape->style) return NULL; - if (SP_SCALE24_TO_FLOAT(shape->style->opacity.value) == 0) // fully transparent, no pick + + bool outline = (NR_ARENA_ITEM(shape)->arena->rendermode == Inkscape::RENDERMODE_OUTLINE); + + if (SP_SCALE24_TO_FLOAT(shape->style->opacity.value) == 0 && !outline) + // fully transparent, no pick unless outline mode return NULL; GTimeVal tstart, tfinish; g_get_current_time (&tstart); - bool outline = (NR_ARENA_ITEM(shape)->arena->rendermode == Inkscape::RENDERMODE_OUTLINE); - double width; if (outline) { width = 0.5; -- 2.30.2