make sure we use the right size for an LO_FLOAT element.

This commit is contained in:
toshok%netscape.com 1998-07-31 03:25:08 +00:00
parent ce052abc4e
commit a9ddc88b80

View File

@ -2049,6 +2049,9 @@ lo_NewElement(MWContext *context, lo_DocState *state, intn type,
case LO_SPACER:
size = sizeof(LO_SpacerStruct);
break;
case LO_FLOAT:
size = sizeof(LO_FloatStruct);
break;
default:
size = sizeof(LO_Any);
break;