double clicking on a gradient line without a shape under it, deselects the gradient shape

Bug #1288486 reported by Cojnel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Low
Unassigned

Bug Description

Default preferences
0.48.4 r9939, r13012
Win 7 Home Premium 64 bit

1. draw a rect to the top left corner on the canvas
2. draw another rect to the bottom right on the canvas
3. select both rects
4. choose path > combine
5. draw a gradient from the top left rect to the bottom
    right rect, the end gradient stop is selected
6. move the cursor over the middle of the gradient line,
    where there are no shapes under it,
    a plus sign is shown below the cursor,
    indicating that a gradient stop can be added
7. double click, a gradient stop gets added,
    in r9939 the shape gets deselected,
    in r13012 the shape stays selected but the
    new gradient stop is not selected
8. (in r9939 select the shape)
    with none of the gradient stops selected,
    click once on the gradient line where there are
    no shapes under it, the shape gets deselected
9. draw an ellipse inbetween the two previous rects,
    so that the gradient line passes over the ellipse
10. double click on the gradient line over the ellipse,
      in r9939 after the first click the two rect shape gets deselected
      in r13012 a new gradient stop gets added,
      and it stays selected.

Expected:
  double clicking on a gradient line with no shape under it,
  should add a new gradient stop and select it.

Actual result:
  double clicking on a gradient line with no shape under it,
  or if a gradient stop isn't selected,
  deselects the shape with the gradient.
.

In r13012 if the shape in the middle only has
a stroke but no fill, then it's only possible
to double click over the stroke to add a new
gradient stop.

In both the stable and the trunk version:
It's possible to add a gradient stop by
holding down ctrl and double clicking anywhere
on the gradient line, even if there's no shape
under it.

possible solutions:
A more userfriendly solution would probably
be to have both the shape with the gradient
and the new gradient stop selected,
after double clicking on a part of a gradient line
where there are no shapes under it.

Another solution would be to not show the plus sign
under the cursor when it isn't possible to
double click to create a gradient stop.

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

All reproduced as described - though I do find the report quite confusing and cumbersome to triage because it mixes stable and trunk. I'd vote to file separate reports for stable and trunk (priority should be on trunk to fix the remaining issues).

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

> All reproduced as described

Sorry, not really all: steps 1-10 tested and reproduced. I didn't test inserting a stop over the stroke of a stroked unfilled object.

Revision history for this message
rickmastfan67 (rickmastfan67) wrote :

I personally just got hit by the 'double clicking on a gradient line with no shape under it' part of the bug when trying to add a new stop to my gradient. Since I had parts of the item grouped together so that the gradient would work with each part, I had some 'gaps' in the drawing preventing me from doing the double click on the line, even though the mouse icon said I could.

Yes, this is annoying, but, at least it has a workaround. By selecting the stop on the left and then hitting the 'add new stop' button, I can get the new stop I wanted in the area that there was no drawing. Sure, I would then have to move the 'stop' to where I wanted it, which is a few extra steps instead of being able to double click where I wanted it, it's a 'tolerable' workaround to this.

Anyways, when this bug was flied, 0.48 branch was still 'active'. Now, the trunk from then is 0.91, so, this ticket could be considered as the stable branch.

Revision history for this message
jazzynico (jazzynico) wrote :

Also reproduced on Windows XP, Inkscape trunk rev. 14165.

Changed in inkscape:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
su_v (suv-lp) wrote :

Retesting with 0.91 r13725 and current stable 0.92.1 r15371 on OS X 10.7.5:
The selection is only lost if no gradient stop is selected at the time the double-click occurs.

If a single (otherwise unrelated) stop of the gradient is already selected (highlighted in blue), then inserting with a double-click works without losing the selection even if the clicked gradient line is over an empty canvas area.

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.