[vlmc-devel] Effect.qml: Fix possibly reading null

Yikai Lu git at videolan.org
Wed Jul 26 09:11:34 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jul 26 15:40:15 2017 +0900| [698d423bb620025bacefbe69066ad70df71956f2] | committer: Yikai Lu

Effect.qml: Fix possibly reading null

> https://code.videolan.org/videolan/vlmc/commit/698d423bb620025bacefbe69066ad70df71956f2
---

 src/Gui/effectsengine/Effect.qml          | 1 -
 src/Gui/effectsengine/EffectsListView.qml | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/effectsengine/Effect.qml b/src/Gui/effectsengine/Effect.qml
index f2a1b0a6..76f0faff 100644
--- a/src/Gui/effectsengine/Effect.qml
+++ b/src/Gui/effectsengine/Effect.qml
@@ -6,7 +6,6 @@ Rectangle {
     border.color: "#222222"
     border.width: 1
 
-    width: parent.width
     height: childrenRect.height
 
     property string identifier
diff --git a/src/Gui/effectsengine/EffectsListView.qml b/src/Gui/effectsengine/EffectsListView.qml
index 4918ecdf..31e349d3 100644
--- a/src/Gui/effectsengine/EffectsListView.qml
+++ b/src/Gui/effectsengine/EffectsListView.qml
@@ -25,6 +25,7 @@ Rectangle {
             width: sView.viewport.width
             model: effects
             delegate: Effect {
+                width: sView.viewport.width
                 identifier: model.identifier
                 name: model.name
                 description: model.description



More information about the Vlmc-devel mailing list