[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Sep 14 08:36:29 PDT 2011


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

New commits:
commit 892f8b55781ccbe7e1f9613113b4721293fe4967
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Wed Sep 14 11:36:36 2011 -0400

    fdo#35965: Mark all formula cells dirty when appending a new sheet.
    
    Just like we do when inserting a sheet in the middle.

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


More information about the Libreoffice-commits mailing list