summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-01-20 18:13:24 +0100
committerEike Rathke <erack@redhat.com>2016-01-20 18:17:40 +0100
commite172d2e300e600d53975a39161ceed0c7158e1e0 (patch)
tree32570012da01c573aebfba26e72a6a1f7e63c97c
parent812ebe795219966a05baca5719b528c186a0baf6 (diff)
nitpicks, tdf#96822 follow-up
Change-Id: Ic745433a870c70c09afa953a4ebef86f4363f9f4
-rw-r--r--sc/source/ui/view/output2.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 3021961615ce..3331a62c690d 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -283,7 +283,7 @@ bool lcl_isNumberFormatText(const ScDocument* pDoc, SCCOL nCellX, SCROW nCellY,
sal_uInt32 nCurrentNumberFormat;
pDoc->GetNumberFormat( nCellX, nCellY, nTab, nCurrentNumberFormat);
SvNumberFormatter* pNumberFormatter = pDoc->GetFormatTable();
- return(pNumberFormatter->GetType( nCurrentNumberFormat ) == css::util::NumberFormat::TEXT);
+ return pNumberFormatter->GetType( nCurrentNumberFormat ) == css::util::NumberFormat::TEXT;
}
void ScDrawStringsVars::SetPattern(
@@ -1413,7 +1413,8 @@ static SvxCellHorJustify getAlignmentFromContext( SvxCellHorJustify eInHorJust,
eHorJustContext = bNumberFormatIsText ? SVX_HOR_JUSTIFY_RIGHT : SVX_HOR_JUSTIFY_LEFT;
else
eHorJustContext = SVX_HOR_JUSTIFY_RIGHT;
- }else if (bCellIsValue) //If language is not RTL
+ }
+ else if (bCellIsValue) //If language is not RTL
eHorJustContext = bNumberFormatIsText ? SVX_HOR_JUSTIFY_LEFT : SVX_HOR_JUSTIFY_RIGHT;
else
bUseWritingDirection = true;