diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-08-06 03:30:48 +0200 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-06 13:10:47 -0400 |
commit | b6166f4af917f05bc124208de77d76ece1a68b9b (patch) | |
tree | 5f19256fc8858fb213678ca4e5c515a42549aeee | |
parent | 564f55163b3f8b18ae6a45a479b7d1760046588c (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
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
Signed-off-by: Eike Rathke <ooo@erack.de>
-rw-r--r-- | sc/source/core/data/table2.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 24fc26924..37b9e7550 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 |