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,17 +4525,20 @@ function DrawingObjects() { ...@@ -4525,17 +4525,20 @@ function DrawingObjects() {
if ( id == aObjects[i].graphicObject.Id ) { if ( id == aObjects[i].graphicObject.Id ) {
aObjects[i].graphicObject.lockType = state; aObjects[i].graphicObject.lockType = state;
// Clip if ( !shapeCtx.m_oContext.isOverlay ) {
_this.clipGraphicsCanvas(shapeCtx);
// Clip
shapeCtx.SetIntegerGrid(false); _this.clipGraphicsCanvas(shapeCtx);
shapeCtx.transform3(aObjects[i].graphicObject.transform, false);
shapeCtx.DrawLockObjectRect(aObjects[i].graphicObject.lockType, 0, 0, aObjects[i].graphicObject.extX, aObjects[i].graphicObject.extY ); shapeCtx.SetIntegerGrid(false);
shapeCtx.reset(); shapeCtx.transform3(aObjects[i].graphicObject.transform, false);
shapeCtx.SetIntegerGrid(true); shapeCtx.DrawLockObjectRect(aObjects[i].graphicObject.lockType, 0, 0, aObjects[i].graphicObject.extX, aObjects[i].graphicObject.extY );
shapeCtx.reset();
// Restore shapeCtx.SetIntegerGrid(true);
_this.restoreGraphicsCanvas(shapeCtx);
// Restore
_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