Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
cb0c34b0
Commit
cb0c34b0
authored
Jan 31, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix crash adding lift_gamma_gain with narrow effect stack
parent
a853d846
Pipeline
#14258
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/utils/flowlayout.cpp
View file @
cb0c34b0
...
...
@@ -149,10 +149,10 @@ int FlowLayout::doLayout(const QRect &rect, bool testOnly) const
if
(
m_itemList
.
isEmpty
()
||
effectiveRect
.
width
()
<=
0
||
effectiveRect
.
height
()
<=
0
)
{
return
0
;
}
QWidget
*
wid
=
m_itemList
.
at
(
0
)
->
widget
();
QSize
min
=
wid
->
minimumSize
();
int
columns
=
qMin
(
qFloor
((
double
)
rect
.
width
()
/
min
.
width
()),
m_itemList
.
size
());
columns
=
qMax
(
1
,
columns
);
int
realWidth
=
rect
.
width
()
/
columns
-
horizontalSpacing
();
int
totalHeight
=
y
-
rect
.
y
()
+
bottom
+
qCeil
((
double
)
m_itemList
.
size
()
/
columns
)
*
(
realWidth
+
verticalSpacing
());
m_minimumSize
=
QSize
(
rect
.
width
(),
totalHeight
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment