Commit 52058ce9 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

take the aspect ratio from the size box when the user activates the

2006-12-29  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpscaletool.c (gimp_scale_tool_size_notify): take
	the aspect ratio from the size box when the user activates the
	constraint by pressing the chain button.
parent 4cbb8d7f
2006-12-29 Sven Neumann <sven@gimp.org>
* app/tools/gimpscaletool.c (gimp_scale_tool_size_notify): take
the aspect ratio from the size box when the user activates the
constraint by pressing the chain button.
2006-12-29 Sven Neumann <sven@gimp.org>
* app/tools/gimptransformtool.[ch]: store the original aspect ratio.
......
......@@ -365,6 +365,19 @@ gimp_scale_tool_size_notify (GtkWidget *box,
if (constrain != options->constrain)
{
gint width;
gint height;
g_object_get (box,
"width", &width,
"height", &height,
NULL);
/* Take the aspect ratio from the size box when the user
* activates the constraint by pressing the chain button.
*/
tr_tool->aspect = (gdouble) width / (gdouble) height;
g_object_set (options,
"constrain", constrain,
NULL);
......
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