summaryrefslogtreecommitdiff
path: root/filter/source/msfilter/msdffimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/msfilter/msdffimp.cxx')
-rw-r--r--filter/source/msfilter/msdffimp.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 9e88ceb4a361..ba0aae06a853 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -2154,12 +2154,10 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
sal_uInt16 nNumElemMemVert = 0;
rIn.ReadUInt16( nNumElemVert ).ReadUInt16( nNumElemMemVert ).ReadUInt16( nElemSizeVert );
}
- bool bImport = false;
- if (nElemSizeVert == 8 || nElemSizeVert == 4)
- {
- //sanity check that the stream is long enough to fulfill nNumElem * nElemSize;
- bImport = rIn.remainingSize() / nElemSizeVert >= nNumElemVert;
- }
+ if (nElemSizeVert != 8)
+ nElemSizeVert = 4;
+ //sanity check that the stream is long enough to fulfill nNumElem * nElemSize;
+ bool bImport = rIn.remainingSize() / nElemSizeVert >= nNumElemVert;
if (bImport)
{
aCoordinates.realloc( nNumElemVert );