diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-03-08 13:01:53 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-03-08 14:35:11 +0100 |
commit | b1fbb1513a4d183e3194965c1a60feca56dc90bb (patch) | |
tree | d3194969f8d11423ca168ebb24d318885ec20be0 /include/oox/export/utils.hxx | |
parent | 1ca73256f99fcc60330463eb7753c20df389e551 (diff) |
fix OOXML validation error, related fdo#42698
Missing percentage sign in type. The values of XML_d and XML_sp seem
insane.
Change-Id: If6762ed70d3536c0eeea3ee687991dad60f5e71e
Diffstat (limited to 'include/oox/export/utils.hxx')
-rw-r--r-- | include/oox/export/utils.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/oox/export/utils.hxx b/include/oox/export/utils.hxx index f82598974ad8..06ddfe3391e5 100644 --- a/include/oox/export/utils.hxx +++ b/include/oox/export/utils.hxx @@ -48,6 +48,12 @@ static inline sal_Int64 TwipsToEMU( sal_Int32 nTwips ) return sal_Int64( nTwips ) * 635; } +template <typename T> +OString writePercentage(T number) +{ + return OString::number(number) + "%"; +} + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |