From a016f2195624f04f9ccb14d0fa2536a5c654994b Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 21 Jun 2001 14:42:12 +0000 Subject: [PATCH] plug-ins/gdyntext/ChangeLog ported changes from stable branch, updating 2001-06-21 Sven Neumann * plug-ins/gdyntext/ChangeLog * plug-ins/gdyntext/gdyntext.[ch]: ported changes from stable branch, updating GDynText to version 1.5.4. --- ChangeLog | 6 ++++++ plug-ins/gdyntext/ChangeLog | 6 ++++++ plug-ins/gdyntext/gdyntext.c | 15 ++++----------- plug-ins/gdyntext/gdyntext.h | 2 +- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index a0057cd144..6e581571cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-06-21 Sven Neumann + + * plug-ins/gdyntext/ChangeLog + * plug-ins/gdyntext/gdyntext.[ch]: ported changes from stable branch, + updating GDynText to version 1.5.4. + 2001-06-21 Sven Neumann * plug-ins/Lighting/lighting_apply.c diff --git a/plug-ins/gdyntext/ChangeLog b/plug-ins/gdyntext/ChangeLog index 87839bb6bd..5c40903875 100644 --- a/plug-ins/gdyntext/ChangeLog +++ b/plug-ins/gdyntext/ChangeLog @@ -1,3 +1,9 @@ +Jun 21 2001 + * updated to 1.5.4 release by Sven Neumann : + * Better placement for text lines by using -1 for the border value when + using gimp_text_fontname. + * It doesn't smash anymore the layer's name back to "GDynText Layer" + when you re-edit a layer's text. Aug 14 2000 * MADE 1.5.2 RELEASE * Merged with 1.5.0 from gimp CVS. diff --git a/plug-ins/gdyntext/gdyntext.c b/plug-ins/gdyntext/gdyntext.c index b4c32b55e5..e3f5df55ff 100644 --- a/plug-ins/gdyntext/gdyntext.c +++ b/plug-ins/gdyntext/gdyntext.c @@ -320,17 +320,10 @@ gdt_save (GdtVals *data) gimp_drawable_parasite_attach (data->drawable_id, parasite); gimp_parasite_free (parasite); - if (!data->change_layer_name) - { - gimp_layer_set_name (data->layer_id, _("GDynText Layer")); - gimp_displays_flush (); - g_free (lname); - - return; - } - /* change the layer name as in GIMP 1.x */ - gimp_layer_set_name (data->layer_id, lname); + if (data->change_layer_name) + gimp_layer_set_name (data->layer_id, _("GDynText Layer")); + gimp_displays_flush (); g_free (lname); } @@ -496,7 +489,7 @@ gdt_render_text_p (GdtVals *data, strspn (text_lines[i], " ") * space_width + xoffs, /* x */ (gdouble)layer_oy + i * (text_height + data->line_spacing), /* y */ text_lines[i], - 0, /* border */ + -1, /* border */ data->antialias, font_size, font_size_type, diff --git a/plug-ins/gdyntext/gdyntext.h b/plug-ins/gdyntext/gdyntext.h index 13b6092058..ac820016d7 100644 --- a/plug-ins/gdyntext/gdyntext.h +++ b/plug-ins/gdyntext/gdyntext.h @@ -23,7 +23,7 @@ #ifndef _GDYNTEXT_H_ #define _GDYNTEXT_H_ -#define GDYNTEXT_VERSION "1.5.2" +#define GDYNTEXT_VERSION "1.5.4" #define GDYNTEXT_MAGIC "GDT10" #define GDYNTEXT_WEB_PAGE "http://www.geocities.com/Tokyo/1474/gimp/" #define MAX_TEXT_SIZE (1024 << 6)