summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index aaa730f..8f4e6ae 100644
--- a/node.c
+++ b/node.c
@@ -404,7 +404,7 @@ void node_frame(Ted *ted, Node *node, Rect r) {
float title_xpos = tab_rect.pos.x;
if (title_width > tab_rect.size.x) {
// full tab title doesn't fit in tab -- only show the right end of it
- title_xpos = tab_rect.pos.x + tab_rect.size.x - title_width;
+ title_xpos = floorf(tab_rect.pos.x + tab_rect.size.x - title_width);
}
text_state.min_x = rect_x1(tab_rect);
text_state.max_x = rect_x2(tab_rect);