bulia byak wrote:
Thanks for adding the tolerance control! But what units does it use? Can we switch it to display % instead of the unnamed integers? I think it will be much more intuitive.
It was using the RGBA pixel color distances ( ( abs(original - checked)
tolerance ) == different from original ), but yeah, percentage makes
more sense. That's now changed and the conversion to pixel color distance is done in flood-context.cpp. I couldn't figure out how to get the percentage sign to appear in there, though.
Also there's a small bug: when the parent or ancestor layers/groups have transforms, the fill shape gets inserted with a wrong transform (out of place). You need to find out the accumulated ancestor transform and, before inserting, transform your shape by inverse of that, so it is placed correctly.
...and this should be working now, too. Let me know if you have any problems with either.
Take care,
John