Commit 1a908815 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov

minor

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51530 954022d7-b5bf-4e40-9824-e11837661b57
parent 78961333
...@@ -524,7 +524,7 @@ ...@@ -524,7 +524,7 @@
if ("hyperlink" === ct.target) { if ("hyperlink" === ct.target) {
// Проверим замерженность // Проверим замерженность
var isHyperlinkClick = false; var isHyperlinkClick = false;
if (ar.c1 === ar.c2 && ar.r1 === ar.r2) if ( (ar.c1 === ar.c2 && ar.r1 === ar.r2) || ws.isSelectOnShape )
isHyperlinkClick = true; isHyperlinkClick = true;
else { else {
var mergedRange = ws.model.getMergedByCell(ar.r1, ar.c1); var mergedRange = ws.model.getMergedByCell(ar.r1, ar.c1);
...@@ -532,7 +532,7 @@ ...@@ -532,7 +532,7 @@
isHyperlinkClick = true; isHyperlinkClick = true;
} }
if (isHyperlinkClick) { if (isHyperlinkClick) {
if (false === ct.hyperlink.hyperlinkModel.getVisited()) { if (false === ct.hyperlink.hyperlinkModel.getVisited() && !ws.isSelectOnShape) {
ct.hyperlink.hyperlinkModel.setVisited(true); ct.hyperlink.hyperlinkModel.setVisited(true);
if (ct.hyperlink.hyperlinkModel.Ref) if (ct.hyperlink.hyperlinkModel.Ref)
ws.changeWorksheet("updateRange", {range: ct.hyperlink.hyperlinkModel.Ref.getBBox0(), isLockDraw: false, canChangeColWidth: false}); ws.changeWorksheet("updateRange", {range: ct.hyperlink.hyperlinkModel.Ref.getBBox0(), isLockDraw: false, canChangeColWidth: false});
...@@ -544,6 +544,7 @@ ...@@ -544,6 +544,7 @@
case c_oAscHyperlinkType.RangeLink: case c_oAscHyperlinkType.RangeLink:
// ToDo надо поправить отрисовку комментария для данной ячейки (с которой уходим) // ToDo надо поправить отрисовку комментария для данной ячейки (с которой уходим)
this.handlers.trigger("asc_onHideComment"); this.handlers.trigger("asc_onHideComment");
ws._checkSelectionShape();
this.Api._asc_setWorksheetRange(ct.hyperlink); this.Api._asc_setWorksheetRange(ct.hyperlink);
break; break;
} }
......
...@@ -4994,9 +4994,7 @@ ...@@ -4994,9 +4994,7 @@
oHyperlink.Tooltip = drawingInfo.hyperlink.ToolTip; oHyperlink.Tooltip = drawingInfo.hyperlink.ToolTip;
var spl = drawingInfo.hyperlink.Value.split("!"); var spl = drawingInfo.hyperlink.Value.split("!");
if (spl.length === 2) { if (spl.length === 2) {
oHyperlink.Location = drawingInfo.hyperlink.Value; oHyperlink.setLocation(drawingInfo.hyperlink.Value);
oHyperlink.LocationSheet = spl[0];
oHyperlink.LocationRange = spl[1];
} }
else else
oHyperlink.Hyperlink = drawingInfo.hyperlink.Value; oHyperlink.Hyperlink = drawingInfo.hyperlink.Value;
...@@ -5774,10 +5772,7 @@ ...@@ -5774,10 +5772,7 @@
var spl = shapeHyperlink.Value.split("!"); var spl = shapeHyperlink.Value.split("!");
if (spl.length === 2) { if (spl.length === 2) {
hyperlink.Location = shapeHyperlink.Value; hyperlink.setLocation(shapeHyperlink.Value);
hyperlink.LocationSheet = spl[0];
hyperlink.LocationRange = spl[1];
this.objectRender.controller.resetSelectionState();
} else } else
hyperlink.Hyperlink = shapeHyperlink.Value; hyperlink.Hyperlink = shapeHyperlink.Value;
......
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