
On 2/27/07, John Bintz <jcoswell@...1414...> wrote:
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.
Does not work for me on the following image:
http://upload.wikimedia.org/wikipedia/en/3/31/Winvistas.svg
which has a transform on the current layer. The fill shape appears below the logo if I click on the logo.
Also, in that image, with tolerance=67, if I click once on the green segment, undo, then click there again (sometimes it takes more than one try), Inkscape freezes eating all memory. If I break it in gdb I get:
#0 0x40eaf566 in mallopt () from /lib/tls/libc.so.6 #1 0x40eadaf9 in malloc () from /lib/tls/libc.so.6 #2 0x40e16cee in operator new () from /usr/lib/libstdc++.so.6 #3 0x08244628 in std::deque<NR::Point, std::allocatorNR::Point
::_M_push_back_aux (
this=0xbfffdfa0, __t=@0x49) at new_allocator.h:81 #4 0x082428fd in try_add_to_queue (fill_queue=0xbfffdfa0, px=0x40f67b20 "\001", orig=0xbfffde2c "ёйVЪЬ\213с\t═к╕\t", x=881, y=627, width=1925, tolerance=73) at stl_deque.h:1018 #5 0x08243795 in sp_flood_context_root_handler (event_context=0x273, event=0x8f052d0) at flood-context.cpp:466 #6 0x0823b606 in sp_event_context_root_handler (event_context=0x8c7e710, event=0x8f052d0) at event-context.cpp:796 #7 0x0823b64c in sp_event_context_item_handler (event_context=0x8c7e710, item=0x96c5870, event=0x8f052d0) at event-context.cpp:814
...i.e. it looks like it runs amok allocating an insane number of points.