]> git.sesse.net Git - mlt/commitdiff
Fix wrong type causing bug in titler (kdenlive-2971)
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 2 Feb 2013 21:27:13 +0000 (22:27 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 2 Feb 2013 21:27:13 +0000 (22:27 +0100)
src/modules/qimage/kdenlivetitle_wrapper.cpp

index d52b35ebe9681316782ac1c27737926a71c1b880..ccb320c7ab6ff291b01a8312cd4cb5a3d18a8f46 100755 (executable)
@@ -457,7 +457,7 @@ void drawKdenliveTitle( producer_ktitle self, mlt_frame frame, int width, int he
                                            empty.append( "\n " );
                                    cursor.insertText( txt.isEmpty() ? empty : txt, format );
                                    if ( !titem->data( 1 ).isNull() )
-                                         titem->setTextWidth( titem->data( 1 ).toInt() );
+                                         titem->setTextWidth( titem->data( 1 ).toDouble() );
                            }
                    }
                }