Bug 556603 – Zoom region always zooms in center of image
* app/tools/gimpmagnifytool.c (gimp_magnify_tool_button_release): When zooming with a click, use gimp_display_shell_scale() instead of local zoom logic. svn path=/trunk/; revision=27452
This commit is contained in:
@ -14,6 +14,14 @@
|
|||||||
* app/widgets/gimpfilleditor.c: pass FALSE if we are editing the
|
* app/widgets/gimpfilleditor.c: pass FALSE if we are editing the
|
||||||
context's "foreground" and "pattern" properties.
|
context's "foreground" and "pattern" properties.
|
||||||
|
|
||||||
|
2008-10-28 Martin Nordholts <martinn@svn.gnome.org>
|
||||||
|
|
||||||
|
Bug 556603 – Zoom region always zooms in center of image
|
||||||
|
|
||||||
|
* app/tools/gimpmagnifytool.c (gimp_magnify_tool_button_release):
|
||||||
|
When zooming with a click, use gimp_display_shell_scale() instead
|
||||||
|
of local zoom logic.
|
||||||
|
|
||||||
2008-10-28 Martin Nordholts <martinn@svn.gnome.org>
|
2008-10-28 Martin Nordholts <martinn@svn.gnome.org>
|
||||||
|
|
||||||
* app/gegl/gimpoperationpointlayermode.c
|
* app/gegl/gimpoperationpointlayermode.c
|
||||||
|
@ -190,8 +190,10 @@ gimp_magnify_tool_button_release (GimpTool *tool,
|
|||||||
if (release_type == GIMP_BUTTON_RELEASE_CLICK ||
|
if (release_type == GIMP_BUTTON_RELEASE_CLICK ||
|
||||||
release_type == GIMP_BUTTON_RELEASE_NO_MOTION)
|
release_type == GIMP_BUTTON_RELEASE_NO_MOTION)
|
||||||
{
|
{
|
||||||
new_scale = gimp_zoom_model_zoom_step (options->zoom_type,
|
gimp_display_shell_scale (shell,
|
||||||
current_scale);
|
options->zoom_type,
|
||||||
|
0.0,
|
||||||
|
GIMP_ZOOM_FOCUS_BEST_GUESS);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -219,7 +221,6 @@ gimp_magnify_tool_button_release (GimpTool *tool,
|
|||||||
}
|
}
|
||||||
|
|
||||||
new_scale = current_scale * factor;
|
new_scale = current_scale * factor;
|
||||||
}
|
|
||||||
|
|
||||||
if (new_scale != current_scale)
|
if (new_scale != current_scale)
|
||||||
{
|
{
|
||||||
@ -287,6 +288,7 @@ gimp_magnify_tool_button_release (GimpTool *tool,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gimp_magnify_tool_motion (GimpTool *tool,
|
gimp_magnify_tool_motion (GimpTool *tool,
|
||||||
|
Reference in New Issue
Block a user