diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-09-19 13:27:09 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-09-20 08:50:17 +0200 |
commit | 146a64bb52a7d51cd27021311fb3ad9075e94d10 (patch) | |
tree | 60b2846804111425dd4bc45c52a89ec10b8d149e /include/oox | |
parent | 6978f506a439cc8bf30393568ba496c266eafdb2 (diff) |
tdf#112333 PPTX export animClr
Change-Id: Ibf230a6c4ddac4806dab235c3394778db26da38c
Reviewed-on: https://gerrit.libreoffice.org/42476
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/export/utils.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/oox/export/utils.hxx b/include/oox/export/utils.hxx index 927987115a60..371cf6a956bf 100644 --- a/include/oox/export/utils.hxx +++ b/include/oox/export/utils.hxx @@ -25,8 +25,16 @@ #include <sal/types.h> inline OString I32S_(sal_Int32 x) { return OString::number(x); } +inline OString I32SHEX_(sal_Int32 x) +{ + OString aStr = OString::number(x, 16); + if (aStr.getLength() % 2 != 0) + aStr = OString("0") + aStr; + return aStr.getStr(); +} inline OString I64S_(sal_Int64 x) { return OString::number(x); } #define I32S(x) I32S_(x).getStr() +#define I32SHEX(x) I32SHEX_(x).getStr() #define I64S(x) I64S_(x).getStr() #define IS(x) OString::number( x ).getStr() |