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
Родитель ce052abc4e
Коммит a9ddc88b80
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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;