diff options
Diffstat (limited to 'PySide/QtGui/glue/qlayout_help_functions.h')
-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)); |