gimp r24957 - in branches/gimp-2-4: . app/tools
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24957 - in branches/gimp-2-4: . app/tools
- Date: Mon, 25 Feb 2008 14:05:42 +0000 (GMT)
Author: neo
Date: Mon Feb 25 14:05:42 2008
New Revision: 24957
URL: http://svn.gnome.org/viewvc/gimp?rev=24957&view=rev
Log:
2008-02-25 Sven Neumann <sven gimp org>
* app/tools/gimpcurvestool.c (curves_graph_events): in the
button-press handler for smooth curves, recalculate the curve
before updating the preview. Fixes bug #518012.
Modified:
branches/gimp-2-4/ChangeLog
branches/gimp-2-4/app/tools/gimpcurvestool.c
Modified: branches/gimp-2-4/app/tools/gimpcurvestool.c
==============================================================================
--- branches/gimp-2-4/app/tools/gimpcurvestool.c (original)
+++ branches/gimp-2-4/app/tools/gimpcurvestool.c Mon Feb 25 14:05:42 2008
@@ -1083,6 +1083,9 @@
curves->points[tool->channel][tool->selected][0] = x;
curves->points[tool->channel][tool->selected][1] = 255 - y;
+ curves_calculate_curve (curves, tool->channel);
+ curves_update (tool, XRANGE | GRAPH);
+
gimp_image_map_tool_preview (GIMP_IMAGE_MAP_TOOL (tool));
break;
@@ -1090,12 +1093,12 @@
curves->curve[tool->channel][x] = 255 - y;
tool->selected = x;
tool->last = y;
+
+ curves_calculate_curve (curves, tool->channel);
+ curves_update (tool, XRANGE | GRAPH);
break;
}
- curves_calculate_curve (curves, tool->channel);
- curves_update (tool, XRANGE | GRAPH);
-
if (! GTK_WIDGET_HAS_FOCUS (widget))
gtk_widget_grab_focus (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]