sc/source/ui/view/output2.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit e172d2e300e600d53975a39161ceed0c7158e1e0 Author: Eike Rathke <er...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits