summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-06 03:30:48 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-07 18:20:06 +0200
commit2c0a392df1e75aa33befa2ff818171eea23d3005 (patch)
tree990f896fd0163f7ce62efc9000d4126050f53212 /sc
parent8b8f6835e60e179de616117f59af64d6f2c34b0a (diff)
fix for fdo#39792: changes to range names invalidate stream too
If we don't invalidate the table stream when we change the local range name, the new range name will only be written if something else has been changed in the sheet
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index b079128b2154..5e44461490b0 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -3054,6 +3054,10 @@ void ScTable::SetRangeName(ScRangeName* pNew)
{
delete mpRangeName;
mpRangeName = pNew;
+
+ //fdo#39792: mark stream as invalid, otherwise new ScRangeName will not be written to file
+ if (IsStreamValid())
+ SetStreamValid(false);
}
ScRangeName* ScTable::GetRangeName() const