[evolution-patches] patch for bug #44705



Best regards
Index: gtkhtml/components/html-editor/ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/ChangeLog,v
retrieving revision 1.413
diff -u -r1.413 ChangeLog
--- gtkhtml/components/html-editor/ChangeLog	21 Jul 2003 06:47:13 -0000	1.413
+++ gtkhtml/components/html-editor/ChangeLog	24 Jul 2003 03:07:17 -0000
@@ -1,3 +1,8 @@
+2003-06-28  Alex Jiang <alex jiang sun com>
+
+	* image.c (changed_template): before clear option data, check 
+	if we are using the same template. Fixes #44705
+
 2003-07-18  Antonio Xu <antonio xu sun com>
 
 	* image.c : (get_sample_html) : change some no sense text.
Index: gtkhtml/components/html-editor/image.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/image.c,v
retrieving revision 1.52
diff -u -r1.52 image.c
--- gtkhtml/components/html-editor/image.c	21 Jul 2003 06:47:13 -0000	1.52
+++ gtkhtml/components/html-editor/image.c	24 Jul 2003 03:07:19 -0000
@@ -413,7 +413,11 @@
 static void
 changed_template (GtkWidget *w, GtkHTMLEditImageProperties *d)
 {
+	gint oldtemplate = d->template;
 	d->template = g_list_index (GTK_MENU_SHELL (w)->children, gtk_menu_get_active (GTK_MENU (w)));
+
+	if (d->template == oldtemplate)
+		return;
 
 	d->border = image_templates [d->template].border;
 	d->align = image_templates [d->template].align;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]