Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
qmlplugindump: Fix missing flush for objects that don't fit a line.
The missing flush could result in script bindings appearing after the
closing brace of an object.

Change-Id: If05764619668cc4a86f7364f6cd7feeb0d6f6e32
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
  • Loading branch information
Christian Kamm authored and Qt by Nokia committed Dec 2, 2011
1 parent 542a7d1 commit e01219b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/qmlplugindump/qmlstreamwriter.cpp
Expand Up @@ -93,8 +93,7 @@ void QmlStreamWriter::writeEndObject()
m_pendingLineLength = 0;
m_maybeOneline = false;
} else {
if (m_maybeOneline)
flushPotentialLinesWithNewlines();
flushPotentialLinesWithNewlines();
--m_indentDepth;
writeIndent();
m_stream->write("}\n");
Expand Down

0 comments on commit e01219b

Please sign in to comment.