From 3684bc5522996204b57be26b99c3ce4578026b3b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 7 Jul 2011 23:28:06 -0700 Subject: [PATCH] Fixed type error in copy rect of Layer. --- guacamole-common-js/src/main/resources/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole-common-js/src/main/resources/layer.js b/guacamole-common-js/src/main/resources/layer.js index 467b4cc66..7c8c82235 100644 --- a/guacamole-common-js/src/main/resources/layer.js +++ b/guacamole-common-js/src/main/resources/layer.js @@ -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.