Commit d09196ba authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Чистилась канва перед добавлением нового объекта

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54317 954022d7-b5bf-4e40-9824-e11837661b57
parent 6447505e
......@@ -521,10 +521,15 @@ function DrawingArea(ws) {
_this.frozenPlaces.push(new FrozenPlace(_this.worksheet, FrozenAreaType.Center));
}
}
_this.drawObject = function(object, canvas) {
_this.clear = function() {
for ( var i = 0; i < _this.frozenPlaces.length; i++ ) {
_this.frozenPlaces[i].clear();
}
}
_this.drawObject = function(object, canvas) {
for ( var i = 0; i < _this.frozenPlaces.length; i++ ) {
if ( _this.frozenPlaces[i].isObjectInside(object) ) {
_this.frozenPlaces[i].drawObject(object, canvas);
}
......
......@@ -3390,6 +3390,7 @@ function DrawingObjects() {
if ( drawingCtx ) {
if ( clearCanvas ) {
}
this.drawingArea.clear();
if ( aObjects.length ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment