[gimp] app: font size wrong when hitting "Reset to default values" in text...



commit 7f9bf84ef63675b89659fa071cf5a65aee7e786f
Author: Jehan <jehan girinstud io>
Date:   Sun May 7 02:41:08 2017 +0200

    app: font size wrong when hitting "Reset to default values" in text...
    
    ... tool when font unit is not pixel.
    The default size is 18px. If for instance one is on a 300 PPI image, and
    set the unit to mm, hitting "Reset to default values" sets to 213 px
    (which corresponds to 18mm at 300PPI). I'm not 100% sure of the source
    of the problem, but resetting the font size before the unit fixes it and
    properly sets back to 18px. Let's go the lazy way and just do this.

 app/tools/gimptextoptions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimptextoptions.c b/app/tools/gimptextoptions.c
index d8f7d7b..d8185ee 100644
--- a/app/tools/gimptextoptions.c
+++ b/app/tools/gimptextoptions.c
@@ -408,8 +408,8 @@ gimp_text_options_reset (GimpConfig *config)
   gimp_config_reset_property (object, "foreground");
 
   /* text options */
-  gimp_config_reset_property (object, "font-size-unit");
   gimp_config_reset_property (object, "font-size");
+  gimp_config_reset_property (object, "font-size-unit");
   gimp_config_reset_property (object, "antialias");
   gimp_config_reset_property (object, "hint-style");
   gimp_config_reset_property (object, "language");


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