summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-04 21:26:00 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-04 21:26:45 +0100
commit467ca9e9e175e328c9d99b94625110a4b6ce591d (patch)
tree669eeb5975e70aa840668823385ed5949f3d4382 /oox
parent8af7a8953248dd184cd620b934ee6abc147f4076 (diff)
better safe than sorry
Change-Id: I1e22f166381b3bc8122b3bbef7fc760705e402d1
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/shapepropertymap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/shapepropertymap.cxx b/oox/source/drawingml/shapepropertymap.cxx
index 446282bc26fa..f14b653eb7f0 100644
--- a/oox/source/drawingml/shapepropertymap.cxx
+++ b/oox/source/drawingml/shapepropertymap.cxx
@@ -63,7 +63,7 @@ ShapePropertyInfo::ShapePropertyInfo( const sal_Int32* pnPropertyIds,
mbNamedFillBitmapUrl( bNamedFillBitmapUrl )
{
assert(pnPropertyIds);
- for(size_t i = 0;; ++i)
+ for(size_t i = 0; i < PROP_COUNT; ++i) // normally we should not reach PROP_COUNT but it prevents infinite loops if we hit a bug
{
if(pnPropertyIds[i] == PROP_END_LIST)
break;