summaryrefslogtreecommitdiff
path: root/include/svl/zformat.hxx
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2016-04-30 21:44:29 +0200
committerEike Rathke <erack@redhat.com>2016-05-03 11:54:41 +0000
commit3beb146b34fa931e2d63f4738a3ae69fe286545f (patch)
treeca9643f09085c67a0944c49b6c3b44903a53b858 /include/svl/zformat.hxx
parentbf95f4f0ce93c793770c3fdbb9e5eec8d22af208 (diff)
tdf#31449 Correctly test if fraction has no integer part
Test if fraction format has no integer part is modified to take into account all cases: ??/?? or ##/## and do not detect false positive like ? ??/?? Change-Id: Ia8677a5ad496e5df56ce6bf1290323555e46ba0a Reviewed-on: https://gerrit.libreoffice.org/24540 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'include/svl/zformat.hxx')
-rw-r--r--include/svl/zformat.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx
index 0289e8edaa4c..52a0deb3b10f 100644
--- a/include/svl/zformat.hxx
+++ b/include/svl/zformat.hxx
@@ -273,6 +273,8 @@ public:
}
return false;
}
+ /** Get the count of numbers among string elements **/
+ sal_uInt16 GetNumForNumberElementCount( sal_uInt16 nNumFor ) const;
/** Get the scanned type of the specified subformat. */
short GetNumForInfoScannedType( sal_uInt16 nNumFor ) const