summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/output2.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-20 20:47:39 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-12-21 19:07:03 +0100
commit8870e068cc7368ffa14a6938836b370d2a188b64 (patch)
treede1cc65476db4132af13ca0950af92a65cec6e67 /sc/source/ui/view/output2.cxx
parent17402c73cfd513ade823a5f26c17371766047b6d (diff)
fdo#39440 sc: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Icd031be4aeec07ba60804923e3506d64cf876dd8
Diffstat (limited to 'sc/source/ui/view/output2.cxx')
-rw-r--r--sc/source/ui/view/output2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index e6d745eb6e08..47f28c219e22 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -1858,12 +1858,12 @@ void ScOutputData::DrawStrings( bool bPixelToLogic )
bVClip = true;
}
- // horizontalen Platz testen
+ // check horizontal space
- bool bRightAdjusted = false; // to correct text width calculation later
bool bNeedEditEngine = false;
if ( !bNeedEditEngine && !bOutside )
{
+ bool bRightAdjusted = false; // to correct text width calculation later
switch (eOutHorJust)
{
case SVX_HOR_JUSTIFY_LEFT: