[Libreoffice-commits] core.git: Branch 'feature/gsoc-writer-char-borders' - sw/source

Zolnai Tamás zolnaitamas2000 at gmail.com
Wed Jun 26 06:49:54 PDT 2013


 sw/source/ui/shells/textsh1.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 2e503780eb856e59e3eeba3ba63b2343bc050c80
Author: Zolnai Tamás <zolnaitamas2000 at gmail.com>
Date:   Wed Jun 26 15:47:58 2013 +0200

    Remove useless variable
    
    Change-Id: I78004d9d74647ad9b87975204844cb2bb66a83fa

diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx
index 534e293..9ee81d1 100644
--- a/sw/source/ui/shells/textsh1.cxx
+++ b/sw/source/ui/shells/textsh1.cxx
@@ -882,8 +882,6 @@ void SwTextShell::Execute(SfxRequest &rReq)
             if ( !pPaM )
                 pPaM = rWrtSh.GetCrsr();
 
-            bool bUseCurCrsr = true;
-
             FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebView, &GetView()));
             SW_MOD()->PutItem(SfxUInt16Item(SID_ATTR_METRIC, static_cast< sal_uInt16 >(eMetric)));
 
@@ -930,8 +928,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
             aCoreSet.Put( aOff );
 
             // Setting the BoxInfo if based on the current cursor
-            if ( bUseCurCrsr )
-                ::PrepareBoxInfo( aCoreSet, rWrtSh );
+            ::PrepareBoxInfo( aCoreSet, rWrtSh );
 
             // Current page format
             ::SwToSfxPageDescAttr( aCoreSet );


More information about the Libreoffice-commits mailing list