mirror of https://github.com/GNOME/gimp.git
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:
parent
2166926338
commit
da12388bd2
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue