Commit a7172ada authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

поправлена функция clone у hyperlink

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54182 954022d7-b5bf-4e40-9824-e11837661b57
parent 82251bb0
...@@ -4083,8 +4083,10 @@ function Range(worksheet, r1, c1, r2, c2){ ...@@ -4083,8 +4083,10 @@ function Range(worksheet, r1, c1, r2, c2){
this.first = new CellAddress(this.bbox.r1, this.bbox.c1, 0); this.first = new CellAddress(this.bbox.r1, this.bbox.c1, 0);
this.last = new CellAddress(this.bbox.r2, this.bbox.c2, 0); this.last = new CellAddress(this.bbox.r2, this.bbox.c2, 0);
} }
Range.prototype.clone=function(){ Range.prototype.clone=function(oNewWs){
return new Range(this.worksheet, this.bbox.r1, this.bbox.c1, this.bbox.r2, this.bbox.c2); if(!oNewWs)
oNewWs = this.worksheet;
return new Range(oNewWs, this.bbox.r1, this.bbox.c1, this.bbox.r2, this.bbox.c2);
} }
Range.prototype.getFirst=function(){ Range.prototype.getFirst=function(){
return this.first; return this.first;
......
...@@ -1993,10 +1993,10 @@ function Hyperlink () { ...@@ -1993,10 +1993,10 @@ function Hyperlink () {
this.bVisited = false; this.bVisited = false;
} }
Hyperlink.prototype = { Hyperlink.prototype = {
clone : function () { clone : function (oNewWs) {
var oNewHyp = new Hyperlink(); var oNewHyp = new Hyperlink();
if (null !== this.Ref) if (null !== this.Ref)
oNewHyp.Ref = this.Ref.clone(); oNewHyp.Ref = this.Ref.clone(oNewWs);
if (null !== this.getLocation()) if (null !== this.getLocation())
oNewHyp.setLocation(this.getLocation()); oNewHyp.setLocation(this.getLocation());
if (null !== this.LocationSheet) if (null !== this.LocationSheet)
......
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