Mercurial > pidgin.yaz
comparison finch/libgnt/gnttextview.c @ 19376:40c3e3857458
Fix #2642 (GntTextView Multiline append goes weird)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 23 Aug 2007 07:24:54 +0000 |
parents | 7066896f6628 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
19375:f520bf6dd4bc | 19376:40c3e3857458 |
---|---|
547 } | 547 } |
548 | 548 |
549 if ((end = strchr(start, '\r')) != NULL || | 549 if ((end = strchr(start, '\r')) != NULL || |
550 (end = strchr(start, '\n')) != NULL) { | 550 (end = strchr(start, '\n')) != NULL) { |
551 len = gnt_util_onscreen_width(start, end - has_scroll); | 551 len = gnt_util_onscreen_width(start, end - has_scroll); |
552 if (len >= widget->priv.width - line->length - has_scroll) { | 552 if (widget->priv.width > 0 && |
553 len >= widget->priv.width - line->length - has_scroll) { | |
553 end = NULL; | 554 end = NULL; |
554 } | 555 } |
555 } | 556 } |
556 | 557 |
557 if (end == NULL) | 558 if (end == NULL) |