Bug 374614

Summary: Pasting text in title clip window changes color when element loses focus
Product: [Applications] kdenlive Reporter: Christian Weiske <cweiske>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 16.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christian Weiske 2017-01-05 21:32:52 UTC
This is a very weird issue.

When creating a title clip with text elements, the text color changes after copy and pasting text from the clipboard and then clicking somewhere else.

Steps to reproduce:
1. Create a new project
2. Create a title clip
3. In the title clip editor, add a text element/frame and type something. The color of the text is white (default here)
4. Click somewhere on the free space on the clip so that the text element loses focus. The text stays white.
5. Open a text editor (e.g. pluma or gedit)
6. Write some text in it, select it and copy it to the clipboard
7. Return to the title clip editor
8. Add a text element. Press Ctrl+v to paste the text from the clipboard. The text is white.
9. Click somewhere on the free space. The text color switches to black!

It gets even weirder:
10. Add a text element. Press Ctrl+v to paste the text from the clipboard.
11. Click on the "Add Text" toolbar button and add a new text element somewhere. The previously pasted text loses focus but stays white!
Comment 1 Christian Weiske 2017-01-05 21:41:46 UTC
Step 11 makes further behavior weirder, because the text element somehow stays in focus-mode until clicked again - and it switches to black then.

Fresh steps:
1. Create a title clip
2. Add a text element and paste text with ctrl+v
3. Cick on the "Add Text" toolbar button
4. Create the second text element, paste with ctrl+v.
5. Click somewhere on the free clip area. Color of 2nd text changes to black.
6. Click 2nd text element. It gets a red "active" frame.
7. Click 1st text element. It's still in cursor-mode (ready to input text).
8. Click somewhere on the free clip area. Color of 1st text stays white.
9. Double-click on the text element. Text will be selected now.
10. Click somewhere on the free clip area. Color of 1st text changes to black!
11. Click 1st text element. It now has the red "active" frame.
Comment 2 Jean-Baptiste Mardelle 2017-01-08 13:05:29 UTC
Git commit fa4acc48e15c1d5c46ecf0b04bd81f7b7290f5b0 by Jean-Baptiste Mardelle.
Committed on 08/01/2017 at 13:05.
Pushed by mardelle into branch 'Applications/16.1'.

Fix various titler bugs (pasting breaks color & font, incorrect selection)

M  +34   -11   src/effectstack/graphicsscenerectmove.cpp
M  +2    -0    src/effectstack/graphicsscenerectmove.h
M  +1    -0    src/titler/titledocument.cpp
M  +2    -2    src/titler/titlewidget.cpp

https://commits.kde.org/kdenlive/fa4acc48e15c1d5c46ecf0b04bd81f7b7290f5b0