summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-12-09 11:30:40 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-12-09 12:01:09 +0100
commitf7a8a5e48ae07551e0f513da57f95d81bdbab43a (patch)
tree69b416aa7f3e50159ea5f9c3361d91aa7aee0ec9 /oox
parentf6c592b5e1722bd5b77de11c08d649b352f6e620 (diff)
drawingml import: read w:color
Change-Id: I6ae7ea8b58e262e5b6226f8f789e39ebcc6077ca
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/textcharacterpropertiescontext.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/oox/source/drawingml/textcharacterpropertiescontext.cxx b/oox/source/drawingml/textcharacterpropertiescontext.cxx
index 405957c5c2cb..12362b9b036a 100644
--- a/oox/source/drawingml/textcharacterpropertiescontext.cxx
+++ b/oox/source/drawingml/textcharacterpropertiescontext.cxx
@@ -137,6 +137,10 @@ ContextHandlerRef TextCharacterPropertiesContext::onCreateContext( sal_Int32 aEl
case OOX_TOKEN( doc, bCs ):
break;
case OOX_TOKEN( doc, color ):
+ if (rAttribs.getInteger(OOX_TOKEN(doc, val)).has())
+ {
+ mrTextCharacterProperties.maCharColor.setSrgbClr(rAttribs.getIntegerHex(OOX_TOKEN(doc, val)).get());
+ }
break;
case OOX_TOKEN( doc, sz ):
if (rAttribs.getInteger(OOX_TOKEN(doc, val)).has())