[Libreoffice-commits] .: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Sep 7 08:49:04 PDT 2012
sw/source/core/doc/doc.cxx | 4 ----
sw/source/filter/xml/xmlmeta.cxx | 2 --
2 files changed, 6 deletions(-)
New commits:
commit 2195e0c699be6093f200ba6225a80ec4b9a545b8
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Sep 7 16:47:32 2012 +0100
Resolves: fdo#53590 you can trust no one to tell you the truth
Change-Id: I6850d2060c1c7490c15c8eff7e0338433e8dab32
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index f7b5bfd..8b439b3 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -1941,10 +1941,6 @@ void SwDoc::ResetModified()
// Bit 1: -> new state
long nCall = mbModified ? 1 : 0;
mbModified = sal_False;
- // If there is already a document statistic, we assume that
- // it is correct. In this case we reset the modified flag.
- if ( 0 != pDocStat->nCharExcludingSpaces )
- pDocStat->bModified = sal_False;
GetIDocumentUndoRedo().SetUndoNoModifiedPosition();
if( nCall && aOle2Link.IsSet() )
{
diff --git a/sw/source/filter/xml/xmlmeta.cxx b/sw/source/filter/xml/xmlmeta.cxx
index 765ac10..0b80ece 100644
--- a/sw/source/filter/xml/xmlmeta.cxx
+++ b/sw/source/filter/xml/xmlmeta.cxx
@@ -159,8 +159,6 @@ void SwXMLImport::SetStatistics(
}
}
- if( 255 == nTokens )
- aDocStat.bModified = sal_False;
if( nTokens )
pDoc->SetDocStat( aDocStat );
More information about the Libreoffice-commits
mailing list