Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
45bd3a8c
Commit
45bd3a8c
authored
May 26, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 32507
parent
9ae2c1eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
cell/model/Workbook.js
cell/model/Workbook.js
+6
-1
No files found.
cell/model/Workbook.js
View file @
45bd3a8c
...
@@ -2616,7 +2616,12 @@ Workbook.prototype.editDefinesNames = function ( oldName, newName, bUndo ) {
...
@@ -2616,7 +2616,12 @@ Workbook.prototype.editDefinesNames = function ( oldName, newName, bUndo ) {
}
}
if
(
oldName
)
{
if
(
oldName
)
{
//при переименовании важно строить зависимости иначе не пересчитаются зависимые формулы
//пример foo->bar влечет SUM(foo)->SUM(bar), но если нет зависимостей то останется SUM(foo)(повторяется при принятии изменений)
//при сдвиге ячеек пересчитывать не надо, т.к. пересчет может запуститься когда сдвинется часть ячеек и тогда будут неправильные зависимости
if
(
newName
.
Name
!=
oldName
.
Name
){
this
.
buildRecalc
(
true
,
true
);
this
.
buildRecalc
(
true
,
true
);
}
retRes
=
this
.
dependencyFormulas
.
changeDefName
(
oldName
,
newName
);
retRes
=
this
.
dependencyFormulas
.
changeDefName
(
oldName
,
newName
);
rename
=
true
;
rename
=
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment