diff options
author | lecoanet | 2004-10-04 15:20:40 +0000 |
---|---|---|
committer | lecoanet | 2004-10-04 15:20:40 +0000 |
commit | 7128019ab7f6b72b6c943852fa34980232a448a1 (patch) | |
tree | 0363b875498e9e29184d093d7e45748187cc125a | |
parent | 41aeb5a8744c3e4bfa42917a2a202f9c196d3415 (diff) | |
download | tkzinc-7128019ab7f6b72b6c943852fa34980232a448a1.zip tkzinc-7128019ab7f6b72b6c943852fa34980232a448a1.tar.gz tkzinc-7128019ab7f6b72b6c943852fa34980232a448a1.tar.bz2 tkzinc-7128019ab7f6b72b6c943852fa34980232a448a1.tar.xz |
Fixed a core dump occuring when a 0 width
text is scaled or rotated (under X).
-rw-r--r-- | generic/Text.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |