summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-05-10 07:06:11 +0000
committerRüdiger Timm <rt@openoffice.org>2005-05-10 07:06:11 +0000
commitefba08812c1534534f4807c2e5dcbcf060255176 (patch)
tree10745dcbbc74bb7da3f4b148a4e0032ba59e7c18 /sw/source/ui
parent18fb4157fe0e482f6c6c7c6257f2cb5dc37fbaf6 (diff)
INTEGRATION: CWS swqbugfixes31 (1.49.56); FILE MERGED
2005/05/02 12:05:48 od 1.49.56.1: #i48419# <SwWrtShell::CalcAndSetScale(..)> - assure that method call <xObj->UpdateReplacement()> doesn't change the modified state of the document.
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/wrtsh/wrtsh1.cxx29
1 files changed, 26 insertions, 3 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh1.cxx b/sw/source/ui/wrtsh/wrtsh1.cxx
index 69cbc9b81d23..7a70f09044cd 100644
--- a/sw/source/ui/wrtsh/wrtsh1.cxx
+++ b/sw/source/ui/wrtsh/wrtsh1.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: wrtsh1.cxx,v $
*
- * $Revision: 1.49 $
+ * $Revision: 1.50 $
*
- * last change: $Author: rt $ $Date: 2005-04-04 08:19:08 $
+ * last change: $Author: rt $ $Date: 2005-05-10 08:06:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -865,7 +865,30 @@ void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
aSz.Width = aSize.Width();
aSz.Height = aSize.Height();
xObj->setVisualAreaSize( nAspect, aSz );
- xObj.UpdateReplacement();
+ // --> OD 2005-05-02 #i48419# - action 'UpdateReplacement' doesn't
+ // have to change the modified state of the document.
+ // This is only a workaround for the defect, that this action
+ // modifies a document after load, because unnecessarily the
+ // replacement graphic is updated, in spite of the fact that
+ // nothing has been changed.
+ // If the replacement graphic changes by this action, the document
+ // will be already modified via other mechanisms.
+ {
+ bool bResetEnableSetModified(false);
+ if ( GetDoc()->GetDocShell()->IsEnableSetModified() )
+ {
+ GetDoc()->GetDocShell()->EnableSetModified( FALSE );
+ bResetEnableSetModified = true;
+ }
+
+ xObj.UpdateReplacement();
+
+ if ( bResetEnableSetModified )
+ {
+ GetDoc()->GetDocShell()->EnableSetModified( TRUE );
+ }
+ }
+ // <--
}
}