Effects|Color|Custom... extension yields wrong color

Bug #186176 reported by Alvin Penner
2
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

Windows XP Inkscape0801141510
When using the extension Color | Custom ... on the Effects menu, the obtained color is typically pure white.

Revision history for this message
Alvin Penner (apenner) wrote :

The file \Inkscape\share\extensions\color_custom.py has been modified to correct this behaviour. The validity checking code for rgb values was modified. New version is attached.

Revision history for this message
bbyak (buliabyak) wrote :

You dropped the eval function calls, but they are what makes this effect useful! With your code only numbers work, but with the old code I could write e.g. r = (g + b)/2. The old one works fine for me, as expected.

Changed in inkscape:
status: New → Invalid
Revision history for this message
Alvin Penner (apenner) wrote :

okay, I think I get it.

If I use the original code and type in the value of 72.0/255 for red then I get red = 72 as expected. Previously I had been typing in 72, which didn't work, and I also tried 72/255 which doesn't work either, but 72./255 does work.

  So ignore my code change, I wasn't aware of how much Python could do with formulas, so I didn't actually try any formulas previously.

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.