summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-09-09 22:56:23 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-09-09 23:08:43 +0200
commite2723d00b77dc1044e2ba599ba93517af34e1ea5 (patch)
tree771b006f4192112e312655c1e030218d15f3e04e /include
parent2ce8b2c37aaebacdce250d6758d93ce7f9a992f0 (diff)
Better place to initialize mnThemedIdx
To make 'if (rBackgroundFillStyle.mnThemedIdx != 0)' actually work as intended. Avoids invalid call to pTheme->getFillStyle() which is not supposed to return 0 here. Change-Id: I323e2628cba64167240e8f0b945e6693b47b8e77
Diffstat (limited to 'include')
-rw-r--r--include/oox/drawingml/shape.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx
index 5882dadde540..a3bd8849fa89 100644
--- a/include/oox/drawingml/shape.hxx
+++ b/include/oox/drawingml/shape.hxx
@@ -50,6 +50,7 @@ struct ShapeStyleRef
{
Color maPhClr;
sal_Int32 mnThemedIdx;
+ ShapeStyleRef() : mnThemedIdx(0) {}
};
typedef ::std::map< sal_Int32, ShapeStyleRef > ShapeStyleRefMap;