summaryrefslogtreecommitdiff
path: root/include/oox/export
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-10-17 22:14:38 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2017-10-19 21:02:07 +0200
commit98133504fde1e1b235c39e4bb3b72bb2ee0b7819 (patch)
treea40a89027bf64ac74fa9a3a76b0989e8bd679c7f /include/oox/export
parent278bdbca318defa3bb862e0422cff2492ef46705 (diff)
PPTX export: remember color schemes in theme
Remember color scheme from loaded pptx file or use default values. Change-Id: Icb69c51603afc5f332c20c75e4ed5f659f4b5614 Reviewed-on: https://gerrit.libreoffice.org/43470 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include/oox/export')
-rw-r--r--include/oox/export/utils.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oox/export/utils.hxx b/include/oox/export/utils.hxx
index 6bca2edcbd16..74e78a37da33 100644
--- a/include/oox/export/utils.hxx
+++ b/include/oox/export/utils.hxx
@@ -28,7 +28,7 @@ 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)
+ while (aStr.getLength() < 6)
aStr = OString("0") + aStr;
return aStr.getStr();
}