[Libreoffice-commits] core.git: svl/source
Laurent Balland-Poirier
laurent.balland-poirier at laposte.net
Wed Oct 5 13:08:26 UTC 2016
svl/source/numbers/zformat.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit deb3fcc4876ec2ab45415a06fc80b247826cc48b
Author: Laurent Balland-Poirier <laurent.balland-poirier at laposte.net>
Date: Sun Sep 25 10:25:43 2016 +0200
tdf#102507 Left aligned denominator
In denominator, move blanks at the end of string
to have denominator left aligned
Change-Id: Ic7ce45dc1ba8c343232a0d4fa1bed2bde58a0bc2
Reviewed-on: https://gerrit.libreoffice.org/29267
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index eb0f048..bdeb74f 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -2557,6 +2557,14 @@ bool SvNumberformat::ImpGetFractionOutput(double fNumber,
sal_Int32 k; // Denominator
bRes |= ImpNumberFill(sDiv, fNumber, k, j, nIx, NF_SYMBOLTYPE_FRAC);
+ if ( !bHideFraction )
+ {
+ while ( sDiv[0] == ' ' )
+ {
+ sDiv.insert( sDenominatorFormat.getLength(), " " );
+ sDiv.remove( 0, 1 );
+ }
+ }
bool bCont = true;
if (rInfo.nTypeArray[j] == NF_SYMBOLTYPE_FRAC)
More information about the Libreoffice-commits
mailing list