summaryrefslogtreecommitdiff
path: root/src/main/python/utils/layout.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python/utils/layout.py')
-rw-r--r--src/main/python/utils/layout.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/python/utils/layout.py b/src/main/python/utils/layout.py
index ac37358..b977a68 100644
--- a/src/main/python/utils/layout.py
+++ b/src/main/python/utils/layout.py
@@ -72,7 +72,7 @@ class flowLayout(QLayout):
spaceX = self.spacing() + wid.style().layoutSpacing(QSizePolicy.ToolButton, QSizePolicy.ToolButton, Qt.Horizontal)
spaceY = self.spacing() + wid.style().layoutSpacing(QSizePolicy.ToolButton, QSizePolicy.ToolButton, Qt.Vertical)
nextX = x + item.sizeHint().width() + spaceX
- if nextX - spaceX > rect.right() and lineHeight > 0:
+ if nextX + spaceX > rect.right() and lineHeight > 0:
x = rect.x()
y = y + lineHeight + spaceY
nextX = x + item.sizeHint().width() + spaceX