[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Sat Aug 6 10:10:31 PDT 2011
sc/source/core/data/table2.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit b6166f4af917f05bc124208de77d76ece1a68b9b
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sat Aug 6 03:30:48 2011 +0200
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 at suse.com>
Signed-off-by: Eike Rathke <ooo at erack.de>
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 24fc269..37b9e75 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
More information about the Libreoffice-commits
mailing list