GNOME Bugzilla – Bug 720492
Letter spacing in Text Tool not reset to default
Last modified: 2013-12-21 09:11:01 UTC
The letter spacing entry widget's value should reset to "0.0" when the "Reset to default values" button is clicked in the Text Tool Options dialog (or when that button is clicked while the SHIFT key is held down within any other Tool Options dialog). This does not happen; the value for letter spacing remains unchanged after a reset has been performed.
Thanks, this is essentially bug 631934. *** This bug has been marked as a duplicate of bug 631934 ***
Perhaps I am misunderstanding the nature of bug 631934, but *this* bug's existence can be attributed to a simple omission of a call to reset the "letter-spacing" property within the 'gimp_text_options_reset()' function* (defined in app/tools/gimptextoptions.c). In my opinion, the resolution of this bug should entail nothing more than the insertion of the following line into that function: gimp_config_reset_property (object, "letter-spacing"); This modification could be done without it being necessary to take into consideration any of the other issues discussed in bug 631934. * https://git.gnome.org/browse/gimp/tree/app/tools/gimptextoptions.c#n361
You are so right...
Hi saulgoode, I have not checked the code at all, but you seem to be a developer and to know what is to be changed. Of course someone else may look and fix this sooner or later, but if you were to provide a solid patch for the issue (with `git format-patch origin/master`), I'm sure we would welcome it. :-) Thanks.
Fixed in master and gimp-2-8: commit db602b3b3328275359e5714df33ae449e6e93774 Author: Michael Natterer <mitch@gimp.org> Date: Fri Dec 20 13:11:53 2013 +0100 Bug 720492 - Letter spacing in Text Tool not reset to default Also reset the "letter-spacing" property in gimp_text_options_reset(). (cherry picked from commit 81c02e7db1fa96ec6b7f0e84d4bc8b9ce2dca293) app/tools/gimptextoptions.c | 1 + 1 file changed, 1 insertion(+)
Created attachment 264650 [details] [review] Patch to reset Text Tool letter spacing Here is the patch to add the line. I have not had the chance to text it yet but will try to do that in the next few days.
Ignore comment #6 (I should have refreshed my browser and/or checked the commit log before submitting).
Same here, I didn't see Jehan's question for a patch either :)