Commit 4e5e47b1 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 24403 - Не выделяется изображение в автофигуре, которая находится в группе

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56814 954022d7-b5bf-4e40-9824-e11837661b57
parent 37749afb
...@@ -151,8 +151,6 @@ function handleShapeImage(drawing, drawingObjectsController, e, x, y, group, pag ...@@ -151,8 +151,6 @@ function handleShapeImage(drawing, drawingObjectsController, e, x, y, group, pag
function handleGroup(drawing, drawingObjectsController, e, x, y, group, pageIndex, bWord) function handleGroup(drawing, drawingObjectsController, e, x, y, group, pageIndex, bWord)
{ {
var grouped_objects = drawing.getArrGraphicObjects(); var grouped_objects = drawing.getArrGraphicObjects();
var selected_objects = drawingObjectsController.selectedObjects;
for(var j = grouped_objects.length - 1; j > -1; --j) for(var j = grouped_objects.length - 1; j > -1; --j)
{ {
var cur_grouped_object = grouped_objects[j]; var cur_grouped_object = grouped_objects[j];
...@@ -160,7 +158,6 @@ function handleGroup(drawing, drawingObjectsController, e, x, y, group, pageInde ...@@ -160,7 +158,6 @@ function handleGroup(drawing, drawingObjectsController, e, x, y, group, pageInde
{ {
case historyitem_type_Shape: case historyitem_type_Shape:
case historyitem_type_ImageShape: case historyitem_type_ImageShape:
case historyitem_type_ChartSpace:
{ {
var hit_in_inner_area = cur_grouped_object.hitInInnerArea && cur_grouped_object.hitInInnerArea(x, y); var hit_in_inner_area = cur_grouped_object.hitInInnerArea && cur_grouped_object.hitInInnerArea(x, y);
var hit_in_path = cur_grouped_object.hitInPath && cur_grouped_object.hitInPath(x, y); var hit_in_path = cur_grouped_object.hitInPath && cur_grouped_object.hitInPath(x, y);
...@@ -171,8 +168,22 @@ function handleGroup(drawing, drawingObjectsController, e, x, y, group, pageInde ...@@ -171,8 +168,22 @@ function handleGroup(drawing, drawingObjectsController, e, x, y, group, pageInde
} }
else if(hit_in_text_rect) else if(hit_in_text_rect)
{ {
var all_drawings = cur_grouped_object.getDocContent().Get_AllDrawingObjects();
var drawings2 = [];
for(var i = 0; i < all_drawings.length; ++i)
{
drawings2.push(all_drawings[i].GraphicObj);
}
var ret = handleInlineObjects(drawingObjectsController, drawings2, e, x, y, pageIndex, true);
if(ret)
return ret;
return drawingObjectsController.handleTextHit(cur_grouped_object, e, x, y, drawing, pageIndex, bWord); return drawingObjectsController.handleTextHit(cur_grouped_object, e, x, y, drawing, pageIndex, bWord);
} }
break;
}
case historyitem_type_ChartSpace:
{
break;
} }
} }
} }
......
...@@ -3266,6 +3266,9 @@ CAreaSeries.prototype = ...@@ -3266,6 +3266,9 @@ CAreaSeries.prototype =
return this.Id; return this.Id;
}, },
Refresh_RecalcData: function() Refresh_RecalcData: function()
{}, {},
...@@ -3330,6 +3333,11 @@ CAreaSeries.prototype = ...@@ -3330,6 +3333,11 @@ CAreaSeries.prototype =
}, },
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
getAllRasterImages: function(images) getAllRasterImages: function(images)
{ {
this.spPr && this.spPr.checkBlipFillRasterImage(images); this.spPr && this.spPr.checkBlipFillRasterImage(images);
......
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