Commit f7e7ab69 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 33036

parent b57ecbf7
...@@ -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