summaryrefslogtreecommitdiff
path: root/src/ui/lookupwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/lookupwidget.c')
-rw-r--r--src/ui/lookupwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c
index 254aad93..a0a507ca 100644
--- a/src/ui/lookupwidget.c
+++ b/src/ui/lookupwidget.c
@@ -121,7 +121,7 @@ static void draw_LookupItem_(iLookupItem *d, iPaint *p, iRect rect, const iListW
121 ? permanent_ColorId | (isPressing || isCursor ? uiTextPressed_ColorId 121 ? permanent_ColorId | (isPressing || isCursor ? uiTextPressed_ColorId
122 : uiTextFramelessHover_ColorId) 122 : uiTextFramelessHover_ColorId)
123 : d->fg; 123 : d->fg;
124 const iInt2 size = measureRange_Text(d->font, range_String(&d->text)); 124 const iInt2 size = measureRange_Text(d->font, range_String(&d->text)).bounds.size;
125 iInt2 pos = init_I2(left_Rect(rect) + 3 * gap_UI, mid_Rect(rect).y - size.y / 2); 125 iInt2 pos = init_I2(left_Rect(rect) + 3 * gap_UI, mid_Rect(rect).y - size.y / 2);
126 if (d->listItem.isSeparator) { 126 if (d->listItem.isSeparator) {
127 pos.y = bottom_Rect(rect) - lineHeight_Text(d->font); 127 pos.y = bottom_Rect(rect) - lineHeight_Text(d->font);