Package: libmlt2 Version: 0.5.6+git20100727-1local1 Severity: normal Tags: patch
Text typewriter effect in kdenlive is rendered incorrectly by libmlt2. kdenlive title wrapper module ignores font color. Enclosed a small patch (backported from latest version of this library) which fixes this problem. -- System Information: Debian Release: 6.0.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libmlt2 depends on: ii libavcodec52 4:0.5.2-6 ffmpeg codec library ii libavdevice52 4:0.5.2-6 ffmpeg device handling library ii libavformat52 4:0.5.2-6 ffmpeg file format library ii libavutil49 4:0.5.2-6 ffmpeg utility library ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libdv4 1.0.0-2.1 software library for DV format dig ii libgcc1 1:4.4.5-8 GCC support library ii libglib2.0-0 2.24.2-1 The GLib library of C routines ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface ii libjack0 [libjack- 1:0.118+svn3796-7 JACK Audio Connection Kit (librari ii libpango1.0-0 1.28.3-1+squeeze2 Layout and rendering of internatio ii libqt4-svg 4:4.6.3-4+squeeze1 Qt 4 SVG module ii libqt4-xml 4:4.6.3-4+squeeze1 Qt 4 XML module ii libqtcore4 4:4.6.3-4+squeeze1 Qt 4 core module ii libqtgui4 4:4.6.3-4+squeeze1 Qt 4 GUI module ii libquicktime1 2:1.1.5-1+b1 library for reading and writing Qu ii libsamplerate0 0.1.7-3 Audio sample rate conversion libra ii libsdl1.2debian 1.2.14-6.1 Simple DirectMedia Layer ii libsox1b 14.3.1-1 SoX library of audio effects and p ii libstdc++6 4.4.5-8 The GNU Standard C++ Library v3 ii libswscale0 4:0.5.2-6 ffmpeg video scaling library ii libvorbisfile3 1.3.1-1 The Vorbis General Audio Compressi ii libx11-6 2:1.3.3-4 X11 client-side library ii libxml2 2.7.8.dfsg-2+squeeze1 GNOME XML library Versions of packages libmlt2 recommends: ii libmlt-data 0.5.6+git20100727-1local1 multimedia framework (data) libmlt2 suggests no packages.
--- src/modules/qimage/kdenlivetitle_wrapper.cpp 2010-06-01 20:15:34.000000000 +0200 +++ ../kdenlivetitle_wrapper.cpp 2011-09-12 18:20:53.000000000 +0200 @@ -423,11 +423,15 @@ // the keystroke delay and a start offset, both in frames QStringList values = params.at( 2 ).split( ";" ); int interval = qMax( 0, ( ( int ) position - values.at( 1 ).toInt()) / values.at( 0 ).toInt() ); - QTextDocument *td = new QTextDocument( params.at( 1 ).left( interval ) ); - td->setDefaultFont( titem->font() ); - td->setDefaultTextOption( titem->document()->defaultTextOption() ); - td->setTextWidth( titem->document()->textWidth() ); - titem->setDocument( td ); + QTextCursor cursor = titem->textCursor(); + cursor.movePosition(QTextCursor::EndOfBlock); + // get the font format + QTextCharFormat format = cursor.charFormat(); + cursor.select(QTextCursor::Document); + QString txt = params.at( 1 ).left( interval ); + // If the string to insert is empty, insert a space so that we don't loose + // formatting infos for the next iterations + cursor.insertText(txt.isEmpty() ? " " : txt, format); } } }

