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

Bug 26234 - Merge Сells не отрабатывает для одной ячейки и остается активной...

Bug 26234 - Merge Сells не отрабатывает для одной ячейки и остается активной на панели после нажатия

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58055 954022d7-b5bf-4e40-9824-e11837661b57
parent dcd3200f
...@@ -6238,10 +6238,14 @@ Range.prototype.merge=function(type){ ...@@ -6238,10 +6238,14 @@ Range.prototype.merge=function(type){
if(null == type) if(null == type)
type = c_oAscMergeOptions.Merge; type = c_oAscMergeOptions.Merge;
var oBBox = this.bbox; var oBBox = this.bbox;
if(oBBox.r1 == oBBox.r2 && oBBox.c1 == oBBox.c2)
return;
History.Create_NewPoint(); History.Create_NewPoint();
History.StartTransaction(); History.StartTransaction();
if(oBBox.r1 == oBBox.r2 && oBBox.c1 == oBBox.c2){
if(type == c_oAscMergeOptions.MergeCenter)
this.setAlignHorizontal("center");
History.EndTransaction();
return;
}
if(this.hasMerged()) if(this.hasMerged())
{ {
this.unmerge(); this.unmerge();
......
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