From 7128019ab7f6b72b6c943852fa34980232a448a1 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 4 Oct 2004 15:20:40 +0000 Subject: Fixed a core dump occuring when a 0 width text is scaled or rotated (under X). --- generic/Text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generic') diff --git a/generic/Text.c b/generic/Text.c index 7433fe9..0ab886b 100644 --- a/generic/Text.c +++ b/generic/Text.c @@ -665,7 +665,7 @@ ComputeCoordinates(ZnItem item, } /* ISSET(item->inv_flags, INV_TEXT_LAYOUT) */ text->height = font_height; - if (text->text_info) { + if (text->text_info && text->max_width) { unsigned int h, cursor_offset; int cursor_line; ZnPoint origin, box[4]; -- cgit v1.1