diff options
author | Eike Rathke <erack@redhat.com> | 2015-07-10 15:07:59 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-07-10 15:11:32 +0200 |
commit | f7f4d985ad44ba0c644b2be02d09002b13d749f7 (patch) | |
tree | ad29b7c4d1760bf2a2f65be0c188265244776090 /include | |
parent | 12d1a2a08a8056df2c14ad3e75b309847989bc23 (diff) |
Resolves: tdf#92457 handle trailing text subformat if others omitted
Change-Id: I597a5019540cef4700355df4d170c103e973797e
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/zformat.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index 21c106ce9bfe..2858563ee4ef 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -277,6 +277,12 @@ public: return false; } + /** Get the scanned type of the specified subformat. */ + short GetNumForInfoScannedType( sal_uInt16 nNumFor ) const + { + return (nNumFor < 4) ? NumFor[nNumFor].Info().eScannedType : css::util::NumberFormat::UNDEFINED; + } + // Whether the second subformat code is really for negative numbers // or another limit set. bool IsSecondSubformatRealNegative() const |