summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
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;