diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-09-15 18:37:28 +0200 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-09-15 18:37:28 +0200 |
commit | bbae7d59ed80c52662daa55cd60590c4157026a4 (patch) | |
tree | 5759d55ed203c69ae6b1252d88267f7c0df6a897 /tools | |
parent | 1547beb261169c86797752fb17f39c3515fb8f87 (diff) | |
parent | 57534c0d9f60b454bdfb7bd488443b42afb67658 (diff) |
dba34a: merge after pulling impress197
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/poly.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 2290cfdbe7c2..e9f98b07adbd 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -243,6 +243,11 @@ void ImplPolygon::ImplSetSize( USHORT nNewSize, BOOL bResize ) void ImplPolygon::ImplSplit( USHORT nPos, USHORT nSpace, ImplPolygon* pInitPoly ) { const ULONG nSpaceSize = nSpace * sizeof( Point ); + + //Can't fit this in :-(, throw ? + if (mnPoints + nSpace > USHRT_MAX) + return; + const USHORT nNewSize = mnPoints + nSpace; if( nPos >= mnPoints ) |