diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index dffa6a9..350d635 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -1069,24 +1069,23 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //debugger; var RGBColor = $scope.GetRGBColor(maskCanvasContext, actulalX, actualY, x, y); - - if ($rootScope.isHighLight) { if ($scope.machedBodyRegion.length > 0) { - for(var i=0;i<$scope.machedBodyRegion.length;i++) - { - var bodyRegionId = $scope.machedBodyRegion[i]; + if ($scope.multiAnnotationIsON == false) { + for (var i = 0; i < $scope.machedBodyRegion.length; i++) { + var bodyRegionId = $scope.machedBodyRegion[i]; - var grayCanvasID = 'imageCanvas' + bodyRegionId; - var grayCanvas = document.getElementById(grayCanvasID); + var grayCanvasID = 'imageCanvas' + bodyRegionId; + var grayCanvas = document.getElementById(grayCanvasID); - var grayCanvasContext = grayCanvas.getContext("2d"); - - var grayImageData = $rootScope.grayImageDataList[bodyRegionId - 1]; + var grayCanvasContext = grayCanvas.getContext("2d"); - grayCanvasContext.putImageData(grayImageData, 0, 0) + var grayImageData = $rootScope.grayImageDataList[bodyRegionId - 1]; + + grayCanvasContext.putImageData(grayImageData, 0, 0) + } } var ActualTermNo = $scope.getActualTermNumber(RGBColor);