Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hello,

this patch invalidates the input stream if we set the local range name.
Otherwise the changes to range names only get saved if we have some other
action that invalidated the stream.

This patch only applies to the 3-4 branch.

Regards,
Markus
From 34092f9760ddcf141be5029b958d66166b63851b Mon Sep 17 00:00:00 2001
From: Markus Mohrhard <markus.mohrhard@googlemail.com>
Date: Sat, 6 Aug 2011 03:30:48 +0200
Subject: [PATCH] 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
---
 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 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
-- 
1.7.3.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.