summaryrefslogtreecommitdiffstats
path: root/src/display/nr-arena-shape.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-06-29 17:21:58 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-06-29 17:21:58 +0000
commitefd8b367ace1bf5c547ddeb8314740e65f16761d (patch)
treef64663c22a3cffb74423b8125fa01adbaf6c107d /src/display/nr-arena-shape.cpp
parentreturn results from 2geom path instead of old path (diff)
downloadinkscape-efd8b367ace1bf5c547ddeb8314740e65f16761d.tar.gz
inkscape-efd8b367ace1bf5c547ddeb8314740e65f16761d.zip
even with zero opacity, paths must be selectable in outline mode
(bzr r6093)
Diffstat (limited to 'src/display/nr-arena-shape.cpp')
-rw-r--r--src/display/nr-arena-shape.cpp8
1 files 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;