diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 59612c9..6243f52 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -1111,8 +1111,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", var canvasElement = document.getElementById("canvas"); var ctx = canvasElement.getContext("2d"); - var canvasElement1 = document.getElementById("canvasPaint"); - var ctx1 = canvasElement1.getContext("2d"); + var canvasPaintElement = document.getElementById("canvasPaint"); + var PaintCanvasctx = canvasPaintElement.getContext("2d"); switch ($rootScope.shapeType) { @@ -1120,7 +1120,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", case "cursor": // ctx.clearRect(0, 0, 2277, 3248); ctx.beginPath(); - ctx1.beginPath(); + PaintCanvasctx.beginPath(); break;