[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Wed Jan 20 09:18:50 PST 2016
sc/source/ui/view/output2.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit e172d2e300e600d53975a39161ceed0c7158e1e0
Author: Eike Rathke <erack at redhat.com>
Date: Wed Jan 20 18:13:24 2016 +0100
nitpicks, tdf#96822 follow-up
Change-Id: Ic745433a870c70c09afa953a4ebef86f4363f9f4
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 3021961..3331a62 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;
More information about the Libreoffice-commits
mailing list