Drawing construction geometry when snapping selects object resize handle instead of drawing

Bug #1656177 reported by Evan Widloski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce (http://imgur.com/a/84aV2):

1. Draw a box and deselect it.

2. Select construction geometry tool, then select line geometry.

3. Hover over a corner of the box (with snapping enabled) and try to draw a construction line from the corner.

Instead of drawing the line, Inkscape selects the box.

If you move the selection handle out of the way by rounding the box, it works as expected (see imgur album)

I'm using Inkscape 0.92pre2 on Fedora 25.

Evan Widloski (evidlo)
description: updated
su_v (suv-lp)
tags: added: shape-editing snapping
removed: construction geometry livepatheffects
Revision history for this message
su_v (suv-lp) wrote :

Not limited nor related to the (experimental) LPE Tool for geometric construction: this is node snapping to rectangle shapes in general, and reproduces with these steps:

1) launch Inkscape 0.92 with default prefs
2) draw a rect
3) round its corners
4) switch to the pencil or pen tool
5) hover the corner of the rectangle and inspect available snap targets

--> the only available snap target for cusp nodes (default snapping mode in drawing mode) is the regular corner of the shape independent of any rounding applied via rectangle tool.

6) activate snapping to smooth nodes on the snap controls bar
7) attempt to snap to the start/end of the arc of the rounded corner (assuming a smooth node on either side)

--> no snap target available

8) convert the rectangle to path (Shift+Ctrl+C)
9) repeat snap tests

--> node snapping finds targets on the converted path as expected.

This snap behavior has been observed in Inkscape 0.47, 0.48.5, 0.91 as well as in latest 0.92 (i.e. always): the start/end points of a rounded corner of a rectangle shape are not targets for smooth node snapping.

Neither the original bug description nor the screenshots reveal whether snapping to smooth nodes was enabled by the user - the report might actually be more a question about usage (outside the scope of a bug tracker).

Revision history for this message
Evan Widloski (evidlo) wrote :

http://imgur.com/a/NBFlJ

I'm only having issues when snapping construction geometry to rectangle corners, not when snapping rectangles to other rectangles.

In regards to the snapping options enabled, this behavior is still present even if all options are enabled.

Revision history for this message
su_v (suv-lp) wrote :

My apologies if I misread the original report - I'll take a closer look later tonight at how well the (experimental, known to be unstable and unfinished) geometric construction tools support snapping if a parametric shape (rectangle) is selected when the user starts drawing a geometric object.

tags: added: livepatheffects
Revision history for this message
su_v (suv-lp) wrote :

Based on tests with archived builds, this is not a recent regression:
- reproduced with lp:inkscape/0.92.x r15325 (with LPETOOL),
- reproduced with Inkscape 0.91 (with LPETOOL),
- reproduced with lp:inkscape rev 10795 (with LPETOOL),
- reproduced with lp:inkscape rev 9760 (with LPETOOL).

Symptom:
A mouse click with the LPE tool in e.g. 'Line segment' mode snaps the initial point to the indicated snap target unless the mouse pointer is over a select-able area (e.g. a filled region or stroke) of another object (might be a regular shape, or another construction line).

Steps to reproduce:
 1) Launch inkscape compiled with LPETOOL.
 2) Open new document based on a px-based template
    (to avoid any errors introduced by the LPEtool's lack of support
     for viewBox).
 3) Draw a rectangle (within the page area).
 4) Enable cusp node snapping if not already active.
 5) Switch to the LPE tool (icon at the bottom of toolbox).
 6) Activate 'Line segment' mode (2nd button on the controls bar).
 7) On-canvas, hover a corner of the rect so that the snap indicator
    is shown while the mouse pointer is over the filled area of the
    rectangle.
 8) Click once to start drawing the line segment.

--> The rectangle below the current cursor position is selected instead.

 9) Move the mouse pointer outside the filled area of the rectangle,
    near enough to the corner to again see the snap target indicator
    show up.
10) Click for line segment start point and finish the line with a
    second click.

--> Snapping works as expected for the initial point of the line segment

11) Click once to deselect the line segment
    (to avoid crash on tool switch).
12) Switch back to select tool.

This behavior makes snapping with the LPE tool drawing modes rather unusable in any moderately complex drawing with overlapping stacked objects - any attempt to set the initial drawing point will always select object hovered at the current pointer position instead.

tags: added: selection
removed: shape-editing
Changed in inkscape:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.