Mercurial > geeqie.yaz
diff src/layout_image.c @ 1492:c350242b1a5d
Fixed bug where pixel/color information at x=0 coordinates werent shown:
- pixel-coordinates now calculated with floor
- guard for update in layout does not apply for 0 coordinates anymore
Patch by Ruben Stein.
author | zas_ |
---|---|
date | Mon, 30 Mar 2009 19:01:09 +0000 |
parents | 96897bd5f6cd |
children | 5f49f305a6b6 |
line wrap: on
line diff
--- a/src/layout_image.c Mon Mar 30 17:52:14 2009 +0000 +++ b/src/layout_image.c Mon Mar 30 19:01:09 2009 +0000 @@ -1541,7 +1541,7 @@ pixbuf_renderer_get_mouse_position(pr, &x_pixel, &y_pixel); - if(x_pixel > 0 && y_pixel > 0) + if(x_pixel >= 0 && y_pixel >= 0) { gint r_mouse, g_mouse, b_mouse; gint width, height;