fix my last commit to this file (don't access sample points of NULL

2007-12-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsamplepointeditor.c
	(gimp_sample_point_editor_points_changed): fix my last commit to
	this file (don't access sample points of NULL images).


svn path=/trunk/; revision=24454
This commit is contained in:
Michael Natterer 2007-12-28 21:02:16 +00:00 committed by Michael Natterer
parent 4e66d93f79
commit 0b27e1e596
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-12-28 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpsamplepointeditor.c
(gimp_sample_point_editor_points_changed): fix my last commit to
this file (don't access sample points of NULL images).
2007-12-28 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c

View File

@ -412,10 +412,11 @@ gimp_sample_point_editor_points_changed (GimpSamplePointEditor *editor)
gint n_points = 0;
gint i;
sample_points = gimp_image_get_sample_points (image_editor->image);
if (image_editor->image)
n_points = MIN (4, g_list_length (sample_points));
{
sample_points = gimp_image_get_sample_points (image_editor->image);
n_points = MIN (4, g_list_length (sample_points));
}
for (i = 0; i < n_points; i++)
{