summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgridlayoutengine.cpp
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-05-12 11:35:14 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-05-12 11:37:24 (GMT)
commit6319d2d16c0c07f8919a748ed844f3db1e48e827 (patch)
tree3218e5028526bdb507ca360e9e624f9d1a64b060 /src/gui/graphicsview/qgridlayoutengine.cpp
parent31e420abad4816d709af9dd7f839070810796bcd (diff)
downloadQt-6319d2d16c0c07f8919a748ed844f3db1e48e827.zip
Qt-6319d2d16c0c07f8919a748ed844f3db1e48e827.tar.gz
Qt-6319d2d16c0c07f8919a748ed844f3db1e48e827.tar.bz2
Fixed dumping so that we dump both q_yy and q_xx instead of q_yy twice.
That code is only executed if the environment varible QT_GRAPHICSLAYOUT_DEBUG is set to1
Diffstat (limited to 'src/gui/graphicsview/qgridlayoutengine.cpp')
-rw-r--r--src/gui/graphicsview/qgridlayoutengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgridlayoutengine.cpp b/src/gui/graphicsview/qgridlayoutengine.cpp
index b377195..c150b0e 100644
--- a/src/gui/graphicsview/qgridlayoutengine.cpp
+++ b/src/gui/graphicsview/qgridlayoutengine.cpp
@@ -1150,8 +1150,8 @@ void QGridLayoutEngine::dump(int indent) const
q_rowData.dump(indent + 2);
qDebug("%*s Geometries output", indent, "");
+ QVector<qreal> *cellPos = &q_yy;
for (int pass = 0; pass < 2; ++pass) {
- QVector<qreal> *cellPos = &q_yy;
QString message;
for (i = 0; i < cellPos->count(); ++i) {
message += QLatin1String((message.isEmpty() ? "[" : ", "));