Skip to content

fixes SetColumnName/SetRowName not removing old name from label map#209

Open
MarkLee131 wants to merge 1 commit intod99kris:masterfrom
MarkLee131:fix/setname-stale-label-mapping
Open

fixes SetColumnName/SetRowName not removing old name from label map#209
MarkLee131 wants to merge 1 commit intod99kris:masterfrom
MarkLee131:fix/setname-stale-label-mapping

Conversation

@MarkLee131
Copy link
Copy Markdown

Fix #208:

SetColumnName and SetRowName add the new name to the internal label map but do not remove the old name. After renaming, the old name still resolves via GetColumnIdx/GetRowIdx, which can cause silent data misdirection when the old name is used after a rename.
Remove the old name from the map before inserting the new one. Add test104 to verify old names are properly cleaned up.

SetColumnName and SetRowName add the new name to the internal label
map but do not remove the old name. After renaming, the old name
still resolves via GetColumnIdx/GetRowIdx, which can cause silent
data misdirection when the old name is used after a rename.

Remove the old name from the map before inserting the new one.
Add test104 to verify old names are properly cleaned up.
@d99kris d99kris self-assigned this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SetColumnName / SetRowName does not remove the old name from the label map

2 participants