Title edit function shuffling lines
Describe the bug: Editing a multi line title from a template created in Inkscape, lines that have previously been blank are not listed for editing, and after saving the edit the lines become reordered.
Steps to reproduce the behavior:
- Open a new project
- Add a multi line title
- Drag this title into a track
- Right click a title in the project titles box and select "Edit title"
- Delete the first line to leave it empty
- Save the title
- Right click a title in the project titles box and select "Edit title" again
- The text entry box for the first line is now absent, so it starts with line 2
- Edit the text on the final line replacing what was already there
- Save the title
- Examine the current state of the title: the last line remains how it was before the edit and the new text has overwritten the last but one line (the edit has shuffled up one line)
Expected behavior: The edited text should remain in the line it was put, and the first (empty) line should still be listed to enter text into
System Details:
- OpenShot Version [e.g. 2.4.3]: 3.1.1-dev
- Operating System / Distro: Fedora 39 12:32:27 INFO app: openshot-qt version: 3.1.1-dev 12:32:27 INFO app: libopenshot version: 0.3.2 12:32:27 INFO app: platform: Linux-6.7.11-200.fc39.x86_64-x86_64-with-glibc2.4 12:32:27 INFO app: processor: 12:32:27 INFO app: machine: x86_64 12:32:27 INFO app: python version: 3.8.10 12:32:27 INFO app: qt5 version: 5.12.8 12:32:27 INFO app: pyqt5 version: 5.14.1
Log Files:
If you are experiencing a crash, please collect and attach logs of the problem. Log files can be found in the .openshot_qt folder in your user home directory. Log files over 2 MB in size will need to be compressed, please attach a ZIP file instead of the raw logs.
libopenshot.log
openshot-qt.log
Exception / Stacktrace: If you are experiencing a crash or strange output on the command line, please attach a small snippet of the exception here, but please keep it as small as possible (for readability).
Screenshots: (Optional)
If applicable, add screenshots to help explain your problem. To include screenshots, copy/paste them here, drag the image(s) into this form, or click the link below this edit field to load images saved to your computer. All images are public, so please don't post screenshots containing personal information.
NOTE: This report could not be uploaded through "openshot.org" bug reporting system because the log upload step reported "Error: Log files are missing OpenShot version information."
Hello @treespan . Thank you for reporting this. Essentially, two issues exist:
- The fact that you lose one of the lines.
- The shuffling of the text.
I am able to reproduce both of these issues running the latest dev daily build #11909 as of this writing in Windows 11 Pro environment. So at least it is consistent across different platforms.
Issue #1 has been reported previously here: https://github.com/OpenShot/openshot-qt/issues/5409. It is has been captured and in the queue to be fixed (no ETA).
Issue #2 (shuffling) is new so I am going to add it to the same issue in step one.
The line disappearing is not a bug but rather a choice the development team had made. However, I agree that it should remain even when blanked out so you are able to "Edit Title" and add text if you choose to do so.
The "shuffling" is definitely a bug and needs to be fixed.
Here is the link to the Trello card capturing these issues: Multi-Line Text - Blank line and shuffling. Sometimes the link doesn't get you there but you can used the "Filters" feature to search for card #168