Commit 9ba467d5 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 30319 - Ошибка в консоли при выделении группы автофигур и изменении стиля текста в DOCX файле

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64681 954022d7-b5bf-4e40-9824-e11837661b57
parent 6c7a4253
...@@ -534,7 +534,7 @@ DrawingObjectsController.prototype = ...@@ -534,7 +534,7 @@ DrawingObjectsController.prototype =
this.changeCurrentState(new PreMoveState(this, x, y, e.ShiftKey, e.CtrlKey, object, is_selected, /*true*/!bInSelect)); this.changeCurrentState(new PreMoveState(this, x, y, e.ShiftKey, e.CtrlKey, object, is_selected, /*true*/!bInSelect));
else else
{ {
this.changeCurrentState(new PreMoveInlineObject(this, object, is_selected, true, pageIndex, x, y)); this.changeCurrentState(new PreMoveInlineObject(this, object, is_selected, !bInSelect, pageIndex, x, y));
} }
} }
else else
......
...@@ -72,7 +72,7 @@ function handleSelectedObjects(drawingObjectsController, e, x, y, group, pageInd ...@@ -72,7 +72,7 @@ function handleSelectedObjects(drawingObjectsController, e, x, y, group, pageInd
if(selected_objects[i].hitInBoundingRect(x, y) && (!selected_objects[i].hitInTextRect || !selected_objects[i].hitInTextRect(x, y))) if(selected_objects[i].hitInBoundingRect(x, y) && (!selected_objects[i].hitInTextRect || !selected_objects[i].hitInTextRect(x, y)))
{ {
if(bWord && selected_objects[i].parent && selected_objects[i].parent.Is_Inline()) if(bWord && selected_objects[i].parent && selected_objects[i].parent.Is_Inline())
return handleInlineHitNoText(selected_objects[i], drawingObjectsController, e, x, y, pageIndex); return handleInlineHitNoText(selected_objects[i], drawingObjectsController, e, x, y, pageIndex, true);
else else
return drawingObjectsController.handleMoveHit(selected_objects[i], e, x, y, group, true, selected_objects[i].selectStartPage, true); return drawingObjectsController.handleMoveHit(selected_objects[i], e, x, y, group, true, selected_objects[i].selectStartPage, true);
} }
...@@ -371,7 +371,7 @@ function handleInlineShapeImage(drawing, drawingObjectsController, e, x, y, page ...@@ -371,7 +371,7 @@ function handleInlineShapeImage(drawing, drawingObjectsController, e, x, y, page
var b_hit_to_text = drawing.hitInTextRect && drawing.hitInTextRect(x, y); var b_hit_to_text = drawing.hitInTextRect && drawing.hitInTextRect(x, y);
if((_hit && !b_hit_to_text) || _hit_to_path) if((_hit && !b_hit_to_text) || _hit_to_path)
{ {
return handleInlineHitNoText(drawing, drawingObjectsController, e, x, y, pageIndex); return handleInlineHitNoText(drawing, drawingObjectsController, e, x, y, pageIndex, false);
} }
else if(b_hit_to_text) else if(b_hit_to_text)
{ {
...@@ -462,7 +462,7 @@ function handleInlineChart(drawing, drawingObjectsController, e, x, y, pageIndex ...@@ -462,7 +462,7 @@ function handleInlineChart(drawing, drawingObjectsController, e, x, y, pageIndex
function handleInlineHitNoText(drawing, drawingObjects, e, x, y, pageIndex) function handleInlineHitNoText(drawing, drawingObjects, e, x, y, pageIndex, bInSelect)
{ {
var selected_objects = drawingObjects.selectedObjects; var selected_objects = drawingObjects.selectedObjects;
if(!(e.CtrlKey || e.ShiftKey) if(!(e.CtrlKey || e.ShiftKey)
...@@ -475,7 +475,7 @@ function handleInlineHitNoText(drawing, drawingObjects, e, x, y, pageIndex) ...@@ -475,7 +475,7 @@ function handleInlineHitNoText(drawing, drawingObjects, e, x, y, pageIndex)
drawingObjects.checkChartTextSelection(); drawingObjects.checkChartTextSelection();
drawingObjects.resetSelection(); drawingObjects.resetSelection();
drawing.select(drawingObjects, pageIndex); drawing.select(drawingObjects, pageIndex);
drawingObjects.changeCurrentState(new PreMoveInlineObject(drawingObjects, drawing, bIsSelected, true, pageIndex, x, y)); drawingObjects.changeCurrentState(new PreMoveInlineObject(drawingObjects, drawing, bIsSelected, !bInSelect, pageIndex, x, y));
if(e.ClickCount > 1 && !e.ShiftKey && !e.CtrlKey && ((drawingObjects.selection.groupSelection && drawingObjects.selection.groupSelection.selectedObjects.length === 1) || drawingObjects.selectedObjects.length === 1)) if(e.ClickCount > 1 && !e.ShiftKey && !e.CtrlKey && ((drawingObjects.selection.groupSelection && drawingObjects.selection.groupSelection.selectedObjects.length === 1) || drawingObjects.selectedObjects.length === 1))
{ {
if (drawing.getObjectType() === historyitem_type_ChartSpace && drawingObjects.handleChartDoubleClick) if (drawing.getObjectType() === historyitem_type_ChartSpace && drawingObjects.handleChartDoubleClick)
......
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