Commit 1417c36b authored by Sven Neumann's avatar Sven Neumann

copy image parasites on image duplicate (fixes bug #6270)


--Sven
parent ad1a3472
Wed Feb 16 21:42:19 CET 2000 Sven Neumann <sven@gimp.org>
* app/channel_ops.c: copy image parasites on image duplicate
(fixes bug #6270)
Wed Feb 16 17:36:43 CET 2000 Sven Neumann <sven@gimp.org>
* PLUGIN_MAINTAINERS: updated file sizes
......
......@@ -15,6 +15,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <string.h>
#include "appenv.h"
......@@ -26,8 +28,8 @@
#include "gimpcontext.h"
#include "gimpui.h"
#include "interface.h"
#include "parasitelist.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
......@@ -517,6 +519,7 @@ duplicate (GimpImage *gimage)
Channel *active_channel = NULL;
GimpDrawable *new_floating_sel_drawable = NULL;
GimpDrawable *floating_sel_drawable = NULL;
ParasiteList *parasites;
PathList *paths;
gint count;
......@@ -661,6 +664,11 @@ duplicate (GimpImage *gimage)
new_gimage->qmask_color[count] = gimage->qmask_color[count];
new_gimage->qmask_opacity = gimage->qmask_opacity;
/* Copy parasites */
parasites = gimage->parasites;
if (parasites)
new_gimage->parasites = parasite_list_copy (parasites);
/* Copy paths */
paths = gimp_image_get_paths (gimage);
if (paths)
......
......@@ -15,6 +15,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <string.h>
#include "appenv.h"
......@@ -26,8 +28,8 @@
#include "gimpcontext.h"
#include "gimpui.h"
#include "interface.h"
#include "parasitelist.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
......@@ -517,6 +519,7 @@ duplicate (GimpImage *gimage)
Channel *active_channel = NULL;
GimpDrawable *new_floating_sel_drawable = NULL;
GimpDrawable *floating_sel_drawable = NULL;
ParasiteList *parasites;
PathList *paths;
gint count;
......@@ -661,6 +664,11 @@ duplicate (GimpImage *gimage)
new_gimage->qmask_color[count] = gimage->qmask_color[count];
new_gimage->qmask_opacity = gimage->qmask_opacity;
/* Copy parasites */
parasites = gimage->parasites;
if (parasites)
new_gimage->parasites = parasite_list_copy (parasites);
/* Copy paths */
paths = gimp_image_get_paths (gimage);
if (paths)
......
......@@ -15,6 +15,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <string.h>
#include "appenv.h"
......@@ -26,8 +28,8 @@
#include "gimpcontext.h"
#include "gimpui.h"
#include "interface.h"
#include "parasitelist.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
......@@ -517,6 +519,7 @@ duplicate (GimpImage *gimage)
Channel *active_channel = NULL;
GimpDrawable *new_floating_sel_drawable = NULL;
GimpDrawable *floating_sel_drawable = NULL;
ParasiteList *parasites;
PathList *paths;
gint count;
......@@ -661,6 +664,11 @@ duplicate (GimpImage *gimage)
new_gimage->qmask_color[count] = gimage->qmask_color[count];
new_gimage->qmask_opacity = gimage->qmask_opacity;
/* Copy parasites */
parasites = gimage->parasites;
if (parasites)
new_gimage->parasites = parasite_list_copy (parasites);
/* Copy paths */
paths = gimp_image_get_paths (gimage);
if (paths)
......
......@@ -15,6 +15,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <string.h>
#include "appenv.h"
......@@ -26,8 +28,8 @@
#include "gimpcontext.h"
#include "gimpui.h"
#include "interface.h"
#include "parasitelist.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
......@@ -517,6 +519,7 @@ duplicate (GimpImage *gimage)
Channel *active_channel = NULL;
GimpDrawable *new_floating_sel_drawable = NULL;
GimpDrawable *floating_sel_drawable = NULL;
ParasiteList *parasites;
PathList *paths;
gint count;
......@@ -661,6 +664,11 @@ duplicate (GimpImage *gimage)
new_gimage->qmask_color[count] = gimage->qmask_color[count];
new_gimage->qmask_opacity = gimage->qmask_opacity;
/* Copy parasites */
parasites = gimage->parasites;
if (parasites)
new_gimage->parasites = parasite_list_copy (parasites);
/* Copy paths */
paths = gimp_image_get_paths (gimage);
if (paths)
......
......@@ -15,6 +15,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <string.h>
#include "appenv.h"
......@@ -26,8 +28,8 @@
#include "gimpcontext.h"
#include "gimpui.h"
#include "interface.h"
#include "parasitelist.h"
#include "config.h"
#include "libgimp/gimpsizeentry.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpintl.h"
......@@ -517,6 +519,7 @@ duplicate (GimpImage *gimage)
Channel *active_channel = NULL;
GimpDrawable *new_floating_sel_drawable = NULL;
GimpDrawable *floating_sel_drawable = NULL;
ParasiteList *parasites;
PathList *paths;
gint count;
......@@ -661,6 +664,11 @@ duplicate (GimpImage *gimage)
new_gimage->qmask_color[count] = gimage->qmask_color[count];
new_gimage->qmask_opacity = gimage->qmask_opacity;
/* Copy parasites */
parasites = gimage->parasites;
if (parasites)
new_gimage->parasites = parasite_list_copy (parasites);
/* Copy paths */
paths = gimp_image_get_paths (gimage);
if (paths)
......
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