Fix for bug #313278. Some links were unclickable. Added initialization code in lo_NewElement() for all the common fields shared across layout elements. Now, all the common fields should get sane values assigned to them at creation time.

git-svn-id: svn://10.0.0.236/trunk@9394 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com
1998-09-04 23:55:04 +00:00
parent 78ab560f17
commit ae9593fa10
2 changed files with 8 additions and 2 deletions

View File

@@ -1705,8 +1705,6 @@ void lo_AppendFloatInLineList(MWContext *context,
float_dummy->lo_any.ele_id = NEXT_ELEMENT;
float_dummy->lo_any.x = state->x;
float_dummy->lo_any.y = state->y;
float_dummy->lo_any.width = 0;
float_dummy->lo_any.height = 0;
float_dummy->lo_any.next = restOfLine;
float_dummy->lo_any.prev = NULL;

View File

@@ -2111,6 +2111,14 @@ lo_NewElement(MWContext *context, lo_DocState *state, intn type,
}
else
{
eptr->lo_any.width = 0;
eptr->lo_any.height = 0;
eptr->lo_any.x_offset = 0;
eptr->lo_any.y_offset = 0;
eptr->lo_any.x = 0;
eptr->lo_any.y = 0;
eptr->lo_any.line_height = 0;
eptr->lo_any.next = NULL;
eptr->lo_any.prev = NULL;
#ifdef EDITOR