зеркало из https://github.com/mozilla/pjs.git
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.
This commit is contained in:
Родитель
2f1e5377da
Коммит
42a7d509f2
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче