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:
nisheeth 1998-06-16 03:05:10 +00:00
Родитель 1b798b801e
Коммит 288dbf57ac
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -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)
{