GetGadgetItemText() doesn't work with wrapped text in EditorGadget

Post bugreports for the Linux version here
User avatar
Shardik
Addict
Addict
Posts: 1988
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

GetGadgetItemText() doesn't work with wrapped text in EditorGadget

Post by Shardik »

When using GetGadgetItemText() to read a text line in a wrapped text block from an EditorGadget with flag #PB_Editor_WordWrap, in Linux (GTK2 and GTK3) the whole wrapped text block is returned in line 0 (in Windows it works as expected).

In Tricks 'n' Tips I have posted this cross-platform workaround.