On 3/1/07, SourceForge.net <[EMAIL PROTECTED]> wrote:

http://dooglus.rincevent.net/synfig/eggs.html


I've found a change that appears to fix the bug, but is it the correct fix?

Index: synfig/src/synfig/layer_pastecanvas.cpp
===================================================================
--- synfig/src/synfig/layer_pastecanvas.cpp    (revision 256)
+++ synfig/src/synfig/layer_pastecanvas.cpp    (working copy)
@@ -325,7 +325,7 @@
            blend_method=Color::BLEND_STRAIGHT;
    }
    else
-    if(!etl::intersect(context.get_full_bounding_rect
(),full_bounding_rect))
+    
if(!etl::intersect(context.get_full_bounding_rect(),full_bounding_rect+origin))

    {
        if(Color::is_onto(blend_method))
            return true;

It seems that the PasteRegion's origin wasn't being taken into account when
checking whether anything was overlapping with the PasteRegion.  Is this fix
reasonable, or should it be done elsewhere?

Chris.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to