~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/sel2path/curve.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* curve.c: operations on the lists of pixels and lists of curves.
2
 
 
3
 
Copyright (C) 1992 Free Software Foundation, Inc.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify
6
 
it under the terms of the GNU General Public License as published by
7
 
the Free Software Foundation; either version 2, or (at your option)
8
 
any later version.
9
 
 
10
 
This program is distributed in the hope that it will be useful,
11
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
GNU General Public License for more details.
14
 
 
15
 
You should have received a copy of the GNU General Public License
16
 
along with this program; if not, write to the Free Software
17
 
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
18
 
 
19
 
#include <stdio.h>
 
2
 *
 
3
 * Copyright (C) 1992 Free Software Foundation, Inc.
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2, or (at your option)
 
8
 * any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 */
 
19
 
 
20
#include "config.h"
 
21
 
20
22
#include <glib.h>
21
23
 
22
 
#include "config.h"
23
24
#include "global.h"
24
25
#include "curve.h"
25
26
 
107
108
{
108
109
  curve_list_type curve_list;
109
110
 
110
 
  curve_list.length = 0;
111
 
  curve_list.data = NULL;
 
111
  curve_list.length    = 0;
 
112
  curve_list.data      = NULL;
 
113
  curve_list.clockwise = FALSE;
112
114
 
113
115
  return curve_list;
114
116
}
163
165
  unsigned this_list;
164
166
 
165
167
  for (this_list = 0; this_list < CURVE_LIST_ARRAY_LENGTH (*curve_list_array);
166
 
       this_list++) 
 
168
       this_list++)
167
169
    free_curve_list (&CURVE_LIST_ARRAY_ELT (*curve_list_array, this_list));
168
170
 
169
171
  /* If the character was empty, it won't have any curves.  */