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

Fix Bug 21908 - [CoEdit] Не пропадает lock у автофигуры при ее получении пользователем

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51361 954022d7-b5bf-4e40-9824-e11837661b57
parent 94d6de01
...@@ -4525,6 +4525,8 @@ function DrawingObjects() { ...@@ -4525,6 +4525,8 @@ function DrawingObjects() {
if ( id == aObjects[i].graphicObject.Id ) { if ( id == aObjects[i].graphicObject.Id ) {
aObjects[i].graphicObject.lockType = state; aObjects[i].graphicObject.lockType = state;
if ( !shapeCtx.m_oContext.isOverlay ) {
// Clip // Clip
_this.clipGraphicsCanvas(shapeCtx); _this.clipGraphicsCanvas(shapeCtx);
...@@ -4536,6 +4538,7 @@ function DrawingObjects() { ...@@ -4536,6 +4538,7 @@ function DrawingObjects() {
// Restore // Restore
_this.restoreGraphicsCanvas(shapeCtx); _this.restoreGraphicsCanvas(shapeCtx);
}
break; break;
} }
} }
......
...@@ -1800,7 +1800,7 @@ ...@@ -1800,7 +1800,7 @@
this._fixSelectionOfMergedCells(); this._fixSelectionOfMergedCells();
this._fixSelectionOfHiddenCells(); this._fixSelectionOfHiddenCells();
this._drawGraphic(); this._drawGraphic();
this.objectRender.showDrawingObjects(false); this.objectRender.showDrawingObjects(true);
if (this.overlayCtx) { if (this.overlayCtx) {
this._drawSelection(); this._drawSelection();
} }
...@@ -2733,7 +2733,7 @@ ...@@ -2733,7 +2733,7 @@
_drawSelectionRange: function (range) { _drawSelectionRange: function (range) {
if (asc["editor"].isStartAddShape || this.objectRender.selectedGraphicObjectsExists()) { if (asc["editor"].isStartAddShape && this.objectRender.selectedGraphicObjectsExists()) {
if (this.isChartAreaEditMode) { if (this.isChartAreaEditMode) {
this._drawFormulaRange(this.arrActiveChartsRanges) this._drawFormulaRange(this.arrActiveChartsRanges)
} }
...@@ -4971,6 +4971,11 @@ ...@@ -4971,6 +4971,11 @@
var lockInfo = undefined; var lockInfo = undefined;
var isLocked = false; var isLocked = false;
var drawingInfo = this.objectRender.checkCursorDrawingObject(x, y);
if (drawingInfo)
return {cursor: drawingInfo.cursor, target: "shape", col: -1, row: -1};
if (asc["editor"].isStartAddShape) if (asc["editor"].isStartAddShape)
return {cursor: kCurFillHandle, target: "shape", col: -1, row: -1}; return {cursor: kCurFillHandle, target: "shape", col: -1, row: -1};
......
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