On Fri, 11 Mar 2005 17:47:56 -0400, bulia byak <buliabyak@...400...> wrote:
I'm aware of this. It's just a thing from our past when we were using objectBoundingBox gradient coords. For objectBoundingBox, this behavior, weird as it may seem, is actually prescribed by the spec (yet another reason to never ever use objectBoundingBox!). When creating new gradients, they're currently still created with objectBoundingBox but get converted at once to userSpaceOnUse, which conversion emulates this weird behavior of objectBoundingBox to avoid gradient displacement. I think I'll be able to fix it easy enough by switching new gradients to use userSpaceOnUse from the start.
OK, I just fixed this in CVS. However this fix only works for new gradients that you create. Old gradients will behave the same as before, which is inevitable, otherwise we will break all the old SVG files (created in both Inkscape or Sodipodi). If you really need the new behavior for an object in an old file, you'll have to switch that object temporarily to flat color and then back to gradient.