fixed calculation of offset into the source buffer (bug #353639).

2006-09-11  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.c (gimp_drawable_preview_draw_area):
	fixed calculation of offset into the source buffer (bug #353639).
This commit is contained in:
Sven Neumann
2006-09-11 12:04:49 +00:00
committed by Sven Neumann
parent 7a21918c54
commit 6a33302009
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-09-11 Sven Neumann <sven@gimp.org>
* libgimp/gimpdrawablepreview.c (gimp_drawable_preview_draw_area):
fixed calculation of offset into the source buffer (bug #353639).
2006-09-11 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-selection.c: minor cleanup.

View File

@ -430,7 +430,9 @@ gimp_drawable_preview_draw_area (GimpDrawablePreview *preview,
draw_height,
gimp_drawable_type (drawable->drawable_id),
src, draw_width * drawable->bpp,
buf + (draw_x - x) + (draw_y - y) * rowstride,
(buf +
(draw_x - x) * drawable->bpp +
(draw_y - y) * rowstride),
rowstride,
sel, draw_width);