summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-06-26 15:47:58 +0200
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-07-22 20:19:29 +0200
commit979854a5fe7843ba4312285c5b245a89692e6c51 (patch)
treea224ce7f0c448c0e8cd6db5d040675be3c0f57a4 /sw
parentca62ff029158cb8543d19324cc721773b2185e20 (diff)
Remove useless variable
Change-Id: I78004d9d74647ad9b87975204844cb2bb66a83fa
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/shells/textsh1.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx
index 8a134520a01e..4444d5ab79b2 100644
--- a/sw/source/ui/shells/textsh1.cxx
+++ b/sw/source/ui/shells/textsh1.cxx
@@ -887,8 +887,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)));
@@ -934,9 +932,8 @@ void SwTextShell::Execute(SfxRequest &rReq)
SfxInt32Item aOff( SID_ATTR_TABSTOP_OFFSET, nOff );
aCoreSet.Put( aOff );
- // Setting the BoxInfo if based on the current cursor
- if ( bUseCurCrsr )
- ::PrepareBoxInfo( aCoreSet, rWrtSh );
+ // Setting the BoxInfo
+ ::PrepareBoxInfo( aCoreSet, rWrtSh );
// Current page format
::SwToSfxPageDescAttr( aCoreSet );