From f7a8a5e48ae07551e0f513da57f95d81bdbab43a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 9 Dec 2013 11:30:40 +0100 Subject: drawingml import: read w:color Change-Id: I6ae7ea8b58e262e5b6226f8f789e39ebcc6077ca --- oox/source/drawingml/textcharacterpropertiescontext.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'oox') 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()) -- cgit