Kaydet (Commit) 24262b7c authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

Don't abort when myPoints is empty

Change-Id: I6bbb2a1cce1c89b94d027acf94fd712706bff422
üst 62061df8
......@@ -752,7 +752,8 @@ static int GetCompoundTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPo
pa = (ControlPoint*)calloc(np, sizeof(ControlPoint));
assert(pa != 0);
memcpy( pa, &myPoints[0], np*sizeof(ControlPoint) );
if (np > 0)
memcpy( pa, &myPoints[0], np*sizeof(ControlPoint) );
*pointArray = pa;
return np;
......
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