Commit 543f7397 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=27013 - [Copy&Paste] Дата или время в...

http://bugzserver/show_bug.cgi?id=27013 -  [Copy&Paste] Дата или время в формате Text после вставки преобразуются в число

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58862 954022d7-b5bf-4e40-9824-e11837661b57
parent fa2f6f8e
......@@ -8108,10 +8108,10 @@
var rangeF = arrFormula[i].range;
var valF = arrFormula[i].val;
if(rangeF.isOneCell())
rangeF.setValue(valF);
rangeF.setValue(valF, null, true);
else {
var oBBox = rangeF.getBBox0();
t.model._getCell(oBBox.r1, oBBox.c1).setValue(valF);
t.model._getCell(oBBox.r1, oBBox.c1).setValue(valF, null, true);
}
};
......@@ -9033,7 +9033,19 @@
else if(value2[nF] && value2[nF].format && !value2[nF].format.skip)
noSkipVal = nF;
}
if(!isOneMerge)//settings for cell(format)
{
//format
var numFormat = newVal.getNumFormat();
var nameFormat;
if(numFormat && numFormat.sFormat)
nameFormat = numFormat.sFormat;
if(nameFormat)
range.setNumFormat(nameFormat);
}
if(value2.length == 1 || numFormula != null || (skipFormat != null && noSkipVal!= null))
{
if(numFormula == null)
......@@ -9089,14 +9101,6 @@
range.setAlignHorizontal(newVal.getAlignHorizontal());
//borders
range.setBorderSrc(newVal.getBorderFull());
//format
var numFormat = newVal.getNumFormat();
var nameFormat;
if(numFormat && numFormat.sFormat)
nameFormat = numFormat.sFormat;
if(nameFormat)
range.setNumFormat(nameFormat);
//fill
range.setFill(newVal.getFill());
......
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