summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/doclay.cxx11
-rw-r--r--sw/source/core/doc/visiturl.cxx4
2 files changed, 7 insertions, 8 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index d14e1991a3ec..6a5de2b48f2b 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -824,12 +824,11 @@ SwFlyFrmFmt* SwDoc::MakeFlyAndMove( const SwPaM& rPam, const SfxItemSet& rSet,
aPos.nContent.Assign( 0, 0 ); // Deregister index!
GetNodes().Delete( aIndex, 1 );
-// This is a hack: whilst FlyFrames/Headers/Footers are not undoable we delete all Undo objects
-if( GetIDocumentUndoRedo().DoesUndo() )
-{
- GetIDocumentUndoRedo().DelAllUndoObj();
-}
-
+ // This is a hack: whilst FlyFrames/Headers/Footers are not undoable we delete all Undo objects
+ if( GetIDocumentUndoRedo().DoesUndo() )
+ {
+ GetIDocumentUndoRedo().DelAllUndoObj();
+ }
}
else
{
diff --git a/sw/source/core/doc/visiturl.cxx b/sw/source/core/doc/visiturl.cxx
index 094883b62b0b..74e571690b86 100644
--- a/sw/source/core/doc/visiturl.cxx
+++ b/sw/source/core/doc/visiturl.cxx
@@ -85,8 +85,8 @@ void SwURLStateChanged::Notify( SfxBroadcaster& , const SfxHint& rHint )
if( bAction )
pESh->EndAllAction();
- if( bUnLockView )
- pESh->LockView( sal_False );
+ if( bUnLockView )
+ pESh->LockView( sal_False );
}
}