Kaydet (Commit) 467ca9e9 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

better safe than sorry

Change-Id: I1e22f166381b3bc8122b3bbef7fc760705e402d1
üst 8af7a895
...@@ -63,7 +63,7 @@ ShapePropertyInfo::ShapePropertyInfo( const sal_Int32* pnPropertyIds, ...@@ -63,7 +63,7 @@ ShapePropertyInfo::ShapePropertyInfo( const sal_Int32* pnPropertyIds,
mbNamedFillBitmapUrl( bNamedFillBitmapUrl ) mbNamedFillBitmapUrl( bNamedFillBitmapUrl )
{ {
assert(pnPropertyIds); 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) if(pnPropertyIds[i] == PROP_END_LIST)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment