mirror of https://github.com/GNOME/gimp.git
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:
parent
4e66d93f79
commit
0b27e1e596
|
@ -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
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue