diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-06-22 18:08:05 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-06-23 11:00:37 -0300 |
commit | 09cb758d9ecfa21f4b8c5b73a43ce05ca6ee0492 (patch) | |
tree | fb85e3e80365a09e7d947bbec0d5e10ee4f10ce8 /PySide | |
parent | 499d42a6f408ab64795b4c8a7ba507a682c7cb39 (diff) |
Fixed layout policy.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtGui/glue/qlayout_help_functions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/QtGui/glue/qlayout_help_functions.h b/PySide/QtGui/glue/qlayout_help_functions.h index 186e0ecd2..cea0b5611 100644 --- a/PySide/QtGui/glue/qlayout_help_functions.h +++ b/PySide/QtGui/glue/qlayout_help_functions.h @@ -22,8 +22,8 @@ inline void addLayoutOwnership(QLayout *layout, QLayout *other) if (!parent) return; - for (int i=0, i_max=layout->count(); i < i_max; i++) { - addLayoutOwnership(layout, layout->itemAt(i)); + for (int i=0, i_max=other->count(); i < i_max; i++) { + addLayoutOwnership(layout, other->itemAt(i)); } Shiboken::AutoDecRef pyParent(Shiboken::Converter<QLayout*>::toPython(layout)); |