[Libreoffice-commits] core.git: sw/source

Philipp Riemer ruderphilipp at gmail.com
Mon Apr 8 01:25:48 PDT 2013


 sw/source/core/doc/doclay.cxx   |   11 +++++------
 sw/source/core/doc/visiturl.cxx |    4 ++--
 2 files changed, 7 insertions(+), 8 deletions(-)

New commits:
commit 88156809f742d95a6a59b94a657567653ea96ca8
Author: Philipp Riemer <ruderphilipp at gmail.com>
Date:   Sun Apr 7 21:35:43 2013 +0200

    fix indentation
    
    Change-Id: I6102b08a03349c4bdc6316f578dc2c90a4569716
    Reviewed-on: https://gerrit.libreoffice.org/3265
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    Tested-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>

diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index d14e199..6a5de2b 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 094883b..74e5716 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 );
     }
 }
 


More information about the Libreoffice-commits mailing list