]> git.neil.brown.name Git - edlib.git/commitdiff
display-x11-xcb: fix wrapping of long lines.
authorNeilBrown <neil@brown.name>
Wed, 25 May 2022 09:54:08 +0000 (19:54 +1000)
committerNeilBrown <neil@brown.name>
Sat, 3 Sep 2022 06:49:08 +0000 (16:49 +1000)
Wrong multiplier was used.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
display-x11-xcb.c

index 1405dea9e2ff237bae4c41ce7f08a1605526f1ed..ee158a57c13793ccb209fccf8656b6d77c8853df 100644 (file)
@@ -32,8 +32,10 @@ Bugs to be fixed
 ----------------
 
 - [X] when completing email address in compose, no feedback while waiting
-- [ ] hide quoted material in emails
-- [ ] long lines wrap badly in xcb display - in emails at least
+- [X] hide quoted material in emails
+- [X] email summary line should indicate size of message.
+- [ ] Email summary line for single-message threads should show size??
+- [X] long lines wrap badly in xcb display - in emails at least
 - [ ] accessing document list can be slow.  Same for large directories
 - [X] queries don't update in the background - they used to
 - [ ] images in email message should never be scaled up
index 876c474e976991eeb128e311a700337f7673bfc4..396d55ed2cafef0839d0d30535e817b96c82c9ff 100644 (file)
@@ -639,7 +639,7 @@ DEF_CMD(xcb_text_size)
        else if (log.width <= ci->num)
                max_bytes = strlen(str);
        else
-               pango_layout_xy_to_index(layout, 1000*ci->num,
+               pango_layout_xy_to_index(layout, PANGO_SCALE*ci->num,
                                         baseline, &max_bytes, NULL);
 
        comm_call(ci->comm2, "cb", ci->focus, max_bytes, NULL, NULL,