Commit 0b3d2393 authored by Steve Lhomme's avatar Steve Lhomme Committed by Francois Cartegnie

text_style: fix text_segment_Copy() when there's no next segment

Signed-off-by: default avatarFrancois Cartegnie <fcvlcdev@free.fr>
parent 8eb1349b
......@@ -206,7 +206,7 @@ text_segment_t *text_segment_Copy( text_segment_t *p_src )
{
text_segment_t *p_dst = NULL, *p_dst0 = NULL;
while( p_src && p_src->p_next ) {
while( p_src ) {
text_segment_t *p_next = text_segment_New( p_src->psz_text );
if( p_next )
p_next->style = text_style_Duplicate( p_src->style );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment