Commit 0ae8cdba authored by Sergey Luzyanin's avatar Sergey Luzyanin Committed by GitHub

Merge pull request #57 from ONLYOFFICE/release/v4.1.0

fix Bug 33036
parents ee181707 f7e7ab69
...@@ -1237,6 +1237,16 @@ CChartSpace.prototype.changeListName = function(val, oldName, newName) ...@@ -1237,6 +1237,16 @@ CChartSpace.prototype.changeListName = function(val, oldName, newName)
{ {
if(val) if(val)
{ {
if(val.numRef && typeof val.numRef.f === "string")
{
if(val.numRef.f.indexOf(newName) > -1)
return;
}
if(val.strRef && typeof val.strRef.f === "string")
{
if(val.strRef.f.indexOf(newName) > -1)
return;
}
if(val.numRef && typeof val.numRef.f === "string" || val.strRef && typeof val.strRef.f === "string") if(val.numRef && typeof val.numRef.f === "string" || val.strRef && typeof val.strRef.f === "string")
{ {
var checkString = oldName.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); var checkString = oldName.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
......
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