Commit b609377e authored by William Jon McCann's avatar William Jon McCann

notebook: Fix rounding error in vertical alignment of arrow

https://bugzilla.gnome.org/show_bug.cgi?id=707920
parent e07fec3e
......@@ -27,6 +27,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "gtknotebook.h"
......@@ -2713,7 +2714,7 @@ gtk_notebook_get_arrow_rect (GtkNotebook *notebook,
else
rectangle->x = event_window_pos.x + event_window_pos.width - 2 * rectangle->width;
}
rectangle->y = event_window_pos.y + (event_window_pos.height - rectangle->height) / 2;
rectangle->y = floor ((gdouble)event_window_pos.y + (event_window_pos.height - rectangle->height) / 2.0 + 0.5);
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