Commit 78151c06 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

правка бага 21365 - Не выделяется диаграмма на листе при открытии docx файла

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50774 954022d7-b5bf-4e40-9824-e11837661b57
parent d929df8f
......@@ -1794,46 +1794,51 @@ function handleChart(paraDrawing, graphicObjects, x, y, e, pageIndex)
}
else
{
if(!(e.CtrlKey || e.ShiftKey))
{
var _common_selection_array = graphicObjects.selectionInfo.selectionArray;
var _current_graphic_object = paraDrawing;
var b_sel = _current_graphic_object.selected;
if(_current_graphic_object.selected === false)
{
for(_sel_index = 0; _sel_index < _common_selection_array.length; ++_sel_index)
_common_selection_array[_sel_index].deselect();
_common_selection_array.length = 0;
_current_graphic_object.select();
_common_selection_array.push(_current_graphic_object);
}
graphicObjects.changeCurrentState(new PreMoveInlineObject(graphicObjects, _current_graphic_object.Get_Id(), false, b_sel));
graphicObjects.drawingDocument.m_oWordControl.OnUpdateOverlay();
editor.asc_fireCallback("asc_canGroup", graphicObjects.canGroup());
editor.asc_fireCallback("asc_canUnGroup", graphicObjects.canUnGroup());
return true;
}
else
_hit = chart.parent.hit(x, y);
if(_hit)
{
if(_common_selection_array.length === 0 ||
_common_selection_array.length === 1 && _common_selection_array[0] === _current_graphic_object)
graphicObjects.majorGraphicObject = chart.parent;
if(!(e.CtrlKey || e.ShiftKey))
{
b_sel = _current_graphic_object.selected;
var _common_selection_array = graphicObjects.selectionInfo.selectionArray;
var _current_graphic_object = paraDrawing;
var b_sel = _current_graphic_object.selected;
if(_current_graphic_object.selected === false)
{
for(_sel_index = 0; _sel_index < _common_selection_array.length; ++_sel_index)
_common_selection_array[_sel_index].deselect();
_common_selection_array.length = 0;
_current_graphic_object.select();
_common_selection_array.push(_current_graphic_object);
}
graphicObjects.changeCurrentState(new PreMoveInlineObject(graphicObjects, _current_graphic_object.Get_Id(), false, b_sel));
graphicObjects.drawingDocument.m_oWordControl.OnUpdateOverlay();
editor.asc_fireCallback("asc_canGroup", graphicObjects.canGroup());
editor.asc_fireCallback("asc_canUnGroup", graphicObjects.canUnGroup());
return true;
}
else
{
if(_common_selection_array.length === 0 ||
_common_selection_array.length === 1 && _common_selection_array[0] === _current_graphic_object)
{
b_sel = _current_graphic_object.selected;
if(_current_graphic_object.selected === false)
{
_current_graphic_object.select();
_common_selection_array.push(_current_graphic_object);
}
graphicObjects.changeCurrentState(new PreMoveInlineObject(graphicObjects, _current_graphic_object.Get_Id(), false, b_sel));
graphicObjects.drawingDocument.m_oWordControl.OnUpdateOverlay();
}
editor.asc_fireCallback("asc_canGroup", graphicObjects.canGroup());
editor.asc_fireCallback("asc_canUnGroup", graphicObjects.canUnGroup());
return true;
editor.asc_fireCallback("asc_canGroup", graphicObjects.canGroup());
editor.asc_fireCallback("asc_canUnGroup", graphicObjects.canUnGroup());
return true;
}
}
}
return false;
......
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