Don't show $GLIB, since it's never set.
[synfig.git] / synfig-core / trunk / src / synfig / layer_pastecanvas.cpp
index c19ec29..3f83cab 100644 (file)
@@ -5,16 +5,17 @@
 **     $Id: layer_pastecanvas.cpp,v 1.3 2005/01/24 03:08:18 darco Exp $
 **
 **     \legal
-**     Copyright (c) 2002 Robert B. Quattlebaum Jr.
+**     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
 **
-**     This software and associated documentation
-**     are CONFIDENTIAL and PROPRIETARY property of
-**     the above-mentioned copyright holder.
+**     This package is free software; you can redistribute it and/or
+**     modify it under the terms of the GNU General Public License as
+**     published by the Free Software Foundation; either version 2 of
+**     the License, or (at your option) any later version.
 **
-**     You may not copy, print, publish, or in any
-**     other way distribute this software without
-**     a prior written agreement with
-**     the copyright holder.
+**     This package is distributed in the hope that it will be useful,
+**     but WITHOUT ANY WARRANTY; without even the implied warranty of
+**     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+**     General Public License for more details.
 **     \endlegal
 */
 /* ========================================================================= */
@@ -78,6 +79,7 @@ SYNFIG_LAYER_SET_CVS_ID(Layer_PasteCanvas,"$Id: layer_pastecanvas.cpp,v 1.3 2005
 
 Layer_PasteCanvas::Layer_PasteCanvas():
        origin(0,0),
+       depth(0),
        zoom(0),
        time_offset(0)
 {
@@ -323,7 +325,7 @@ Layer_PasteCanvas::accelerated_render(Context context,Surface *surface,int quali
                        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;