Summary: | First letter in the first word on a line is sometimes missing (not rendered) | ||
---|---|---|---|
Product: | [Applications] lokalize | Reporter: | Karl Ove Hufthammer <karl> |
Component: | editor | Assignee: | Nick Shaforostoff <shafff> |
Status: | RESOLVED UPSTREAM | ||
Severity: | minor | CC: | safa1996alfulaij |
Priority: | NOR | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Example translation file triggering the bug
Screenshot showing the incorrect rendering Screenshot showing the correct rendering (after resizing the edit pane) |
Description
Karl Ove Hufthammer
2016-03-21 17:22:36 UTC
Created attachment 98008 [details]
Example translation file triggering the bug
Created attachment 98009 [details]
Screenshot showing the incorrect rendering
Created attachment 98010 [details]
Screenshot showing the correct rendering (after resizing the edit pane)
Seems like this is related to the non-breaking space after the word. When one adds a non-breaking space after the first word on the line, the first letter in the word is not rendered. When one continues adding non-breaking spaces, the other letters disappear one after another, until the word is completely invisible (adding additional non-breaking spaces then have no effect on the word or on other words). yep... the workaround is to disable 'highlightSpaces' option... looks to me as a qt bug -- i do simple setFormat call in syntaxhighlighter for qtextedit if the char matches 0x00a0U code. changing it to match simple spaces does't trigger a similar issue. https://quickgit.kde.org/?p=lokalize.git&a=blob&h=87a765d61ad24ea45133407622b26a7425dc7066&hb=bc3ca63d835aa6f0ecae3e5a451826dc661890b8&f=src%2Fsyntaxhighlighter.cpp I confirm that this bug is resolved in my Lokalize running Qt 5.11. Please check and close. Yes, looks like it was a Qt bug which is now fixed. |