summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2017-03-16 23:45:13 +0100
committerEike Rathke <erack@redhat.com>2017-04-07 09:06:59 +0000
commit693c929c1a475e6b4bd737e50d09d6f390700812 (patch)
tree31c9d095eac809b2fe1a7bca7f5baa510ba7362a /include
parent84c3729eb210ff255761c4613ba03c4fb5e949f8 (diff)
tdf#106190 Fix (again) left alignment of denominator
Instead of moving spaces from left to right, like it was done previously, this patch insert spaces directly on right when in denominator This avoid complex calculation when user enter such (stupid) format: # ?/ ??? or # ?/" hello world "??? In SvNumberformat::ImpNumberFill, for NF_SYMBOLTYPE_FRAC_FDIV you need at least to move in sBuf, to insert text at the expected place for (stupid) format like # ?/ 100 or # ?/" hello world "100 All these formats works, but are stored in ODF with text after fraction Change-Id: I296e60643e93242b8006848a643135219ad4ad0c Reviewed-on: https://gerrit.libreoffice.org/35320 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 2fd110a78d03510d031c4c6cf6ad380d82899df8) Reviewed-on: https://gerrit.libreoffice.org/36232
Diffstat (limited to 'include')
-rw-r--r--include/svl/zformat.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx
index ce632ae04920..ceba6a4993ca 100644
--- a/include/svl/zformat.hxx
+++ b/include/svl/zformat.hxx
@@ -553,7 +553,8 @@ private:
sal_Int32& k,
sal_uInt16& j,
sal_uInt16 nIx,
- short eSymbolType );
+ short eSymbolType,
+ bool bInsertRightBlank = false );
// Helper function to fill in the integer part and the group (AKA thousand) separators
SVL_DLLPRIVATE bool ImpNumberFillWithThousands( OUStringBuffer& sStr,