Cannot edit swatch - regression

Bug #1564597 reported by insaner on 2016-03-31
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Martin Owens

Bug Description

A recent commit seems to have broken the ability to edit a swatch in any way.

Likely to have been

Reproduce by either selecting a pre-existing swatch from the swatch dialog or the Stroke&Fill dialog.

Linux fc17 32bit

su_v (suv-lp) wrote :

Reproduced with Inkscape 0.91+devel r14753 on OS X 10.7.5.

Based on tests with archived builds:
- not reproduced with rev <= 14745,
- reproduced with rev >= 14747;
the regression was introduced in rev 14747 (14746 was just a translation update):
Revision 14747: Fix bugs with the colour selector self-signaling on change.

Steps to reproduce:
1) launch current trunk (new prefs, default new doc)
2) draw a rect; keep it selected
3) open Fill and Stroke
4) convert fill color (blue) to custom swatch
5) edit swatch color by dragging one of the color controls (slider) in the bottom half of the Fill and Stroke dialog
--> fails to update the swatch color

Note that numeric input (e.g. new RGBA values) still works.

Changed in inkscape:
status: New → Confirmed
tags: added: color regression ui
Martin Owens (doctormo) on 2016-03-31
Changed in inkscape:
assignee: nobody → Martin Owens (doctormo)
insaner (insaner) wrote :

Adding back the line


 in src/ui/selected-color.cpp brings back the old behavior (can edit the swatch, but cannot edit Hue or Saturation if luminance is at 0 or 255).

Martin Owens (doctormo) wrote :

Please don't add the broken line back, I've assigned this bug to myself in order to claim responsibility.

Martin Owens (doctormo) wrote :

On a second reading, I think you meant that you tested adding the line back, not that you added the line back. My mistake!

insaner (insaner) wrote :

Yes, that's what I meant, sorry about the confusing grammar/formatting. Let me know if I can help in any way.. I was trying to see if I could trace the source of the problem before you took ownership, but no luck.

insaner (insaner) wrote :

If by any chance in solving this one you could tackle
as well, that would be great too.

Martin Owens (doctormo) wrote :

I've fixed this issue in r14757. My testing of swatches shows that it's got quite a few problems already and I'm not quite sure what it's supposed to be doing, but in this case it was easy as the signals for updating were almost all empty. I've tied drag and release signals so you should get color changes now and also as an added bonus, they should update as you drag too.

Jabiertxof (jabiertxof) wrote :


insaner (insaner) wrote :

Fix confirmed! Thank you!

Martin Owens (doctormo) on 2016-04-02
Changed in inkscape:
status: Confirmed → Fix Released
su_v (suv-lp) wrote :

Proposing to reopen (not fixed):
1) while r14757 fixed the color sliders, it broke the RGBA entry (does not update the swatch color anymore) - this worked before (see also comment #1).
2) the spinbuttons to the right of the sliders are still broken (changes there are not applied to the swatch color).

Regression (RGBA entry) confirmed with archived builds (ok with r14756, not ok with r14758), both broken aspects (RGBA, spinbuttons) still present with latest trunk r14904.

jazzynico (jazzynico) wrote :

Issues from comment #10 confirmed on Windows XP, Inkscape trunk rev. 14909.

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.92
status: Fix Released → In Progress
jazzynico (jazzynico) on 2017-01-09
Changed in inkscape:
milestone: 0.92 → 0.93
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers