summaryrefslogtreecommitdiffstats
path: root/src/corelib/xml/qxmlstream.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2009-07-13 15:28:09 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-07-13 15:28:09 (GMT)
commit650353f402d725688821b83904fe6319c8afa4da (patch)
tree943c251676fe006e723e991bd126c002bcbb7bbd /src/corelib/xml/qxmlstream.cpp
parent4a82d7cc185bd98ec8183fb0ccadefd3196b3ee2 (diff)
parent754d9c2f1d0dce16017b99f766c1fa3e47b0afde (diff)
downloadQt-650353f402d725688821b83904fe6319c8afa4da.zip
Qt-650353f402d725688821b83904fe6319c8afa4da.tar.gz
Qt-650353f402d725688821b83904fe6319c8afa4da.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt into qtwebkit-4.6-staging
Conflicts: util/webkit/mkdist-webkit
Diffstat (limited to 'src/corelib/xml/qxmlstream.cpp')
-rw-r--r--src/corelib/xml/qxmlstream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/xml/qxmlstream.cpp b/src/corelib/xml/qxmlstream.cpp
index f1487f7..1fc2a9f 100644
--- a/src/corelib/xml/qxmlstream.cpp
+++ b/src/corelib/xml/qxmlstream.cpp
@@ -3410,11 +3410,12 @@ void QXmlStreamWriter::writeComment(const QString &text)
{
Q_D(QXmlStreamWriter);
Q_ASSERT(!text.contains(QLatin1String("--")) && !text.endsWith(QLatin1Char('-')));
- if (!d->finishStartElement() && d->autoFormatting)
+ if (!d->finishStartElement(false) && d->autoFormatting)
d->indent(d->tagStack.size());
d->write("<!--");
d->write(text);
d->write("-->");
+ d->inStartElement = d->lastWasStartElement = false;
}