]> git.sesse.net Git - kdenlive/commitdiff
Fix titlewidget rectangle border alpha value not correctly restored
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 4 Nov 2012 12:27:56 +0000 (13:27 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 4 Nov 2012 12:27:56 +0000 (13:27 +0100)
src/titlewidget.cpp

index f1ce84d8cd4b751b70f8dcbf90821af6823d4c1e..5a9387491edcd1d7668cd8df8ecea27767ac6a83 100644 (file)
@@ -2034,7 +2034,7 @@ void TitleWidget::readChoices()
     QColor bgColor = QColor(titleConfig.readEntry("rect_background_color", rectBColor->color()));
 
 #if KDE_IS_VERSION(4,5,0)
-    fgColor.setAlpha(titleConfig.readEntry("rect_background_alpha", fgColor.alpha()));
+    fgColor.setAlpha(titleConfig.readEntry("rect_foreground_alpha", fgColor.alpha()));
     bgColor.setAlpha(titleConfig.readEntry("rect_background_alpha", bgColor.alpha()));
 #else
     rectFAlpha->setValue(titleConfig.readEntry("rect_foreground_alpha", rectFAlpha->value()));