take drawable offsets into account. Fixes bug #161508.

2004-12-17  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_pick_color):
	take drawable offsets into account. Fixes bug #161508.
This commit is contained in:
Sven Neumann 2004-12-17 12:31:11 +00:00 committed by Sven Neumann
parent 2166926338
commit da12388bd2
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-12-17 Sven Neumann <sven@gimp.org>
* app/tools/gimpimagemaptool.c (gimp_image_map_tool_pick_color):
take drawable offsets into account. Fixes bug #161508.
2004-12-17 Sven Neumann <sven@gimp.org>
* docs/gimp-remote.1.in

View File

@ -410,6 +410,11 @@ gimp_image_map_tool_pick_color (GimpColorTool *color_tool,
gint *color_index)
{
GimpImageMapTool *tool = GIMP_IMAGE_MAP_TOOL (color_tool);
gint off_x, off_y;
gimp_item_offsets (GIMP_ITEM (tool->drawable), &off_x, &off_y);
x -= off_x;
y -= off_y;
*sample_type = gimp_drawable_type (tool->drawable);