Commit da12388b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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.
parent 21669263
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment