Fixed type error in copy rect of Layer.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Fri, 8 Jul 2011 06:28:06 +0000 (23:28 -0700)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Fri, 8 Jul 2011 06:28:06 +0000 (23:28 -0700)
src/main/resources/layer.js

index 467b4cc..7c8c822 100644 (file)
@@ -345,7 +345,7 @@ Guacamole.Layer = function(width, height) {
 
         function doCopyRect() {
             if (layer.autosize != 0) fitRect(x, y, srcw, srch);
-            displayContext.drawImage(srcLayer, srcx, srcy, srcw, srch, x, y, srcw, srch);
+            displayContext.drawImage(srcLayer.getCanvas(), srcx, srcy, srcw, srch, x, y, srcw, srch);
         }
 
         // If we ARE the source layer, no need to sync.