зеркало из https://github.com/mozilla/pjs.git
Fix for bug#124552. No code review needed coz fix is smaller than 5 lines.
Now text layout looks at both the state structure and the current text block for propagating anchor information when a new text layout element is created.
This commit is contained in:
Родитель
1b798b801e
Коммит
288dbf57ac
|
@ -484,7 +484,15 @@ lo_new_text_element(MWContext *context,
|
|||
text_ele->text_len = 0;
|
||||
}
|
||||
|
||||
/* Fix for bug#124552. Look at both the state structure and the
|
||||
current text block for anchor information. */
|
||||
text_ele->anchor_href = state->current_anchor;
|
||||
if (state->current_anchor == NULL &&
|
||||
state->cur_text_block != NULL &&
|
||||
state->cur_text_block->anchor_href != NULL)
|
||||
{
|
||||
text_ele->anchor_href = state->cur_text_block->anchor_href;
|
||||
}
|
||||
|
||||
if (state->font_stack == NULL)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче