Mercurial > geeqie.yaz
changeset 153:0e54267762f6
fixed copying zoom an scroll values from the original image on splitting
author | nadvornik |
---|---|
date | Sun, 09 Dec 2007 12:33:51 +0000 |
parents | 2c534c7c8c1f |
children | 6bcd037bf176 |
files | src/layout_image.c |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout_image.c Sun Dec 09 11:58:39 2007 +0000 +++ b/src/layout_image.c Sun Dec 09 12:33:51 2007 +0000 @@ -1771,8 +1771,13 @@ { layout_image_new(lw, 1); if (lw->image) + { + gdouble sx, sy; image_change_fd(lw->split_images[1], - image_get_fd(lw->image), image_zoom_get_real(lw->image)); + image_get_fd(lw->image), image_zoom_get(lw->image)); + image_get_scroll_center(lw->image, &sx, &sy); + image_set_scroll_center(lw->split_images[1], sx, sy); + } layout_image_deactivate(lw, 1); layout_image_activate(lw, 0); } @@ -1834,8 +1839,13 @@ { layout_image_new(lw, i); if (lw->image) + { + gdouble sx, sy; image_change_fd(lw->split_images[i], - image_get_fd(lw->image), image_zoom_get_real(lw->image)); + image_get_fd(lw->image), image_zoom_get(lw->image)); + image_get_scroll_center(lw->image, &sx, &sy); + image_set_scroll_center(lw->split_images[i], sx, sy); + } layout_image_deactivate(lw, i); }