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

Отрисовка активного диапазона в OnUpdateOverlay, если нет заселекченных объектов

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51717 954022d7-b5bf-4e40-9824-e11837661b57
parent bf5858cb
...@@ -2989,6 +2989,8 @@ function DrawingObjects() { ...@@ -2989,6 +2989,8 @@ function DrawingObjects() {
_this.OnUpdateOverlay = function(bFull) { _this.OnUpdateOverlay = function(bFull) {
// TODO Сократить вызовы
var overlay = trackOverlay; var overlay = trackOverlay;
var ctx = overlay.m_oContext; var ctx = overlay.m_oContext;
var drDoc = this.drawingDocument; var drDoc = this.drawingDocument;
...@@ -3008,6 +3010,10 @@ function DrawingObjects() { ...@@ -3008,6 +3010,10 @@ function DrawingObjects() {
shapeOverlayCtx.m_oContext.clearRect( mmToPx(boundsChecker.Bounds.min_x) + scrollOffset.getX(), mmToPx(boundsChecker.Bounds.min_y) + scrollOffset.getY(), mmToPx(_w), mmToPx(_h) ); shapeOverlayCtx.m_oContext.clearRect( mmToPx(boundsChecker.Bounds.min_x) + scrollOffset.getX(), mmToPx(boundsChecker.Bounds.min_y) + scrollOffset.getY(), mmToPx(_w), mmToPx(_h) );
} }
} }
if ( !_this.selectedGraphicObjectsExists() ) {
worksheet.cleanSelection();
worksheet._drawSelectionRange(worksheet.activeRange);
}
// Clip // Clip
_this.clipGraphicsCanvas(shapeOverlayCtx); _this.clipGraphicsCanvas(shapeOverlayCtx);
......
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