https://bugs.kde.org/show_bug.cgi?id=422647
Bug ID: 422647 Summary: wrong conversion of integers to floats from project file Product: kdenlive Version: 20.04.1 Platform: Other OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: User Interface Assignee: j...@kdenlive.org Reporter: rob...@riemann.cc Target Milestone: --- Dear all, I have a very unusual use case. I create with a number of scripts from a json file with image paths and their durations a half-broken minimal kdenlive file to get a slideshow in sync with a webcam+audio stream. As I do not know precisely which elements in the kdenlive file are necessary or not, it is a bit complicated. On my way to make it working somehow, I noticed that conversion from seconds to "HH:mm:ss" format only works properly if seconds are a float type and it does not work for integers. My template: <entry producer="producer${library[slide]}" in="00:00:00.000" out="00:00:${value['duration']}"> <property name="kdenlive:id">${library[slide]}</property> </entry>` If value[duration] is lets say 125, the value is not picked up. If it is "125.00", it is correctly converted. I fixed this problem for me with an explicit conversion to use two decimal digits with .toFixed(2). Thanks for making kdenlive. -- You are receiving this mail because: You are watching all bug changes.