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){
this.first = new CellAddress(this.bbox.r1, this.bbox.c1, 0);
this.last = new CellAddress(this.bbox.r2, this.bbox.c2, 0);
}
Range.prototype.clone=function(){
return new Range(this.worksheet, this.bbox.r1, this.bbox.c1, this.bbox.r2, this.bbox.c2);
Range.prototype.clone=function(oNewWs){
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(){
return this.first;
......
......@@ -1993,10 +1993,10 @@ function Hyperlink () {
this.bVisited = false;
}
Hyperlink.prototype = {
clone : function () {
clone : function (oNewWs) {
var oNewHyp = new Hyperlink();
if (null !== this.Ref)
oNewHyp.Ref = this.Ref.clone();
oNewHyp.Ref = this.Ref.clone(oNewWs);
if (null !== this.getLocation())
oNewHyp.setLocation(this.getLocation());
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