Commit 3ce28618 authored by Raphael Defosseux's avatar Raphael Defosseux

Merge remote-tracking branch 'origin/T-minor-fix-2019-w14' into develop_integration_2019_w15

parents 9e247f3f b9379834
...@@ -130,9 +130,13 @@ static void paint(gui *_gui, widget *_this) ...@@ -130,9 +130,13 @@ static void paint(gui *_gui, widget *_this)
this->common.y + FLIP(y), this->common.y + FLIP(y),
this->common.x + this->vrule_width + 5, this->common.x + this->vrule_width + 5,
this->common.y + FLIP(y)); this->common.y + FLIP(y));
/* do not print out of the widget (take care of top) */
y = FLIP(y)-this->label_height/2+this->label_baseline;
if (y - this->label_baseline < 0)
y = this->label_baseline;
x_draw_string(g->x, g->xwin, DEFAULT_FONT, FOREGROUND_COLOR, x_draw_string(g->x, g->xwin, DEFAULT_FONT, FOREGROUND_COLOR,
this->common.x + this->vrule_width - vwidth - 2, this->common.x + this->vrule_width - vwidth - 2,
this->common.y + FLIP(y)-this->label_height/2+this->label_baseline, this->common.y + y,
v); v);
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment