diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/GipfelWidget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 73be7e2..c8a2fae 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -738,7 +738,7 @@ GipfelWidget::get_pixel_bicubic(Fl_Image *img, double x, double y, for (int iy = 0; iy < 4; iy++) { for (int ix = 0; ix < 4; ix++) { - if (get_pixel(img, (int) fl_x + ix, (int) fl_y + iy, + if (get_pixel(img, (int) fl_x + ix - 1, (int) fl_y + iy - 1, &ic[0], &ic[1], &ic[2]) != 0) { return 1; } |