diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx index 902b39a72548..11a3e8a29615 100644 --- a/basegfx/source/polygon/b2dpolypolygontools.cxx +++ b/basegfx/source/polygon/b2dpolypolygontools.cxx @@ -615,11 +615,11 @@ namespace basegfx } B2DPolygon aCurrSegment; - const size_t sliceSize=sizeof(numbers)/sizeof(*numbers)/12; + const size_t sliceSize=SAL_N_ELEMENTS(numbers)/12; const int* pCurrSegment=numbers + nNumber*sliceSize; for( size_t i=0; i