After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 353132 - Text tool doesn't handle TAB correctly
Text tool doesn't handle TAB correctly
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
2.3.x
Other All
: Normal minor
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
: 354945 376458 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-27 19:25 UTC by samLT
Modified: 2008-01-15 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description samLT 2006-08-27 19:25:23 UTC
Please describe the problem:
beginning a line with a tab and then start writing "whatever" will display
"    "
"w    w"
"h    wh"
"a    wha"
and so on...
...
"e    whateve"
"r    whatever"

then hitting TAB again
"r    whateverr    "
type random letters works
"r    whateverr    qdf"
then ENTER to create new line, then TAB again
"r    whateverr    qdf"
"f    "

(where f is the last letter of the previous line)

and so forth and so on..


Steps to reproduce:
1. start gimp
2. click add text to the image, then in the text editor box
3. do what is described above


Actual results:


Expected results:


Does this happen every time?
yes

Other information:
Comment 1 Michael Schumacher 2006-08-27 21:06:31 UTC
I can't reproduce this with current CVS on Win32. Could this be a GTK+ bug?
Comment 2 Michael Schumacher 2006-08-27 21:08:28 UTC
Argh, I can reproduce this. I though the lines given as example were supposed to be individual lines below each other.
Comment 3 Sven Neumann 2006-08-28 08:19:10 UTC
The bug report puts it as if the problem was in the text editor. But the editor displays the text correctly. The problem is in the generated text layer. Looks like a Pango bug, but we will need to investigate this further.
Comment 4 Michael Natterer 2006-09-08 11:17:34 UTC
*** Bug 354945 has been marked as a duplicate of this bug. ***
Comment 5 Michael Natterer 2006-09-08 11:19:26 UTC
This is a bug in pango that needs a workaround in GIMP (it can't be
changed in pango apparently, says behdad), so 2.2 is also affected
when linked against the broken pango version.
Comment 6 weskaggs 2006-09-08 18:50:31 UTC
Fixed in HEAD.  I am not going to backport this right now, because it is not clear to me whether there is a risk of breaking the build for people who have earlier Pango versions.  Consequently I won't mark this FIXED either.

2006-09-08  Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/text/gimptextlayout-render.c (gimp_text_layout_render_glyphs): 
	handle tabs correctly, as instructed by behdad.  Fixes
	bug #353132.
Comment 7 weskaggs 2006-09-08 19:24:26 UTC
Okay, committed to the 2-2 branch as well, hopefully without breaking the build.  Resolving now.
Comment 8 Sven Neumann 2006-11-18 15:02:44 UTC
*** Bug 376458 has been marked as a duplicate of this bug. ***