diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2016-09-25 10:25:43 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-10-05 13:05:49 +0000 |
commit | deb3fcc4876ec2ab45415a06fc80b247826cc48b (patch) | |
tree | 2bb8fbb4f736d091aea27a17e25a86875d85c6c7 | |
parent | 0148bcbeccf1e62f789a5fadd65a359840854f1b (diff) |
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@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | svl/source/numbers/zformat.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index eb0f0484983b..bdeb74fff88c 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) |