[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Wed Sep 14 09:01:33 PDT 2011


 sc/source/core/data/document.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 98daddfd67823a97c6e820357a2e2e8b111cf1ad
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Wed Sep 14 17:55:53 2011 +0200

    fda#35965: Mark all formula cells dirty when appending a new sheet
    
    Signed-off-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index fa80311..48cf99b 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -406,13 +406,16 @@ sal_Bool ScDocument::InsertTab( SCTAB nPos, const String& rName,
                 if ( pChartListenerCollection )
                     pChartListenerCollection->UpdateScheduledSeriesRanges();
 
-                SetDirty();
                 bValid = sal_True;
             }
             else
                 bValid = false;
         }
     }
+
+    if (bValid)
+        SetDirty();
+
     return bValid;
 }
 


More information about the Libreoffice-commits mailing list