summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-01-29 12:32:48 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-01-29 12:32:48 +0200
commit90c30b1f227dba56dcd9f96580365d3529840074 (patch)
treebb780d8301234f4d4dabeb8d89cc85176c40d13a /src/ui/sidebarwidget.c
parenta735eadbb2b10f897b31a91052684f0f9a9604be (diff)
SidebarWidget: Fixed word wrapping issue in unread feed titles
Text width was measured with the wrong font.
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r--src/ui/sidebarwidget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 32dcf61f..dc1a60dc 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -1251,8 +1251,7 @@ static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect,
1251 int skip = metaSize.x + advance_Text(uiLabel_FontId, " \u2014 ").x; 1251 int skip = metaSize.x + advance_Text(uiLabel_FontId, " \u2014 ").x;
1252 iInt2 cur = addX_I2(pos, skip); 1252 iInt2 cur = addX_I2(pos, skip);
1253 const char *endPos; 1253 const char *endPos;
1254 tryAdvance_Text( 1254 tryAdvance_Text(titleFont, range_String(&d->label), avail - skip, &endPos);
1255 uiContent_FontId, range_String(&d->label), avail - skip, &endPos);
1256 drawRange_Text(titleFont, 1255 drawRange_Text(titleFont,
1257 cur, 1256 cur,
1258 labelFg, 1257 labelFg,