summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-23 12:09:22 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-23 14:09:24 -0300
commite635023cdb91452e719f16afb70d3d19b01aed34 (patch)
treeb51f89302034b3946e2b493d9a3d4be310536cf1
parentabf841fbd3a28d16441ea076584d37b68659b288 (diff)
downloadpyside-e635023cdb91452e719f16afb70d3d19b01aed34.tar.gz
pyside-e635023cdb91452e719f16afb70d3d19b01aed34.tar.xz
pyside-e635023cdb91452e719f16afb70d3d19b01aed34.zip
Fixed layout ownership transfer.
Fixes bug #480 Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--PySide/QtGui/glue/qlayout_help_functions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtGui/glue/qlayout_help_functions.h b/PySide/QtGui/glue/qlayout_help_functions.h
index 3361e61..bb3c3f8 100644
--- a/PySide/QtGui/glue/qlayout_help_functions.h
+++ b/PySide/QtGui/glue/qlayout_help_functions.h
@@ -39,7 +39,7 @@ inline void addLayoutOwnership(QLayout* layout, QLayout* other)
}
for (int i=0, i_max=other->count(); i < i_max; i++) {
- QLayoutItem* item = layout->itemAt(i);
+ QLayoutItem* item = other->itemAt(i);
if (PyErr_Occurred())
return;