Commit e01219b7 authored by Christian Kamm's avatar Christian Kamm Committed by Qt by Nokia
Browse files

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: default avatarLeandro Melo <leandro.melo@nokia.com>
parent 542a7d16
No related merge requests found
Showing with 1 addition and 2 deletions
...@@ -93,8 +93,7 @@ void QmlStreamWriter::writeEndObject() ...@@ -93,8 +93,7 @@ void QmlStreamWriter::writeEndObject()
m_pendingLineLength = 0; m_pendingLineLength = 0;
m_maybeOneline = false; m_maybeOneline = false;
} else { } else {
if (m_maybeOneline) flushPotentialLinesWithNewlines();
flushPotentialLinesWithNewlines();
--m_indentDepth; --m_indentDepth;
writeIndent(); writeIndent();
m_stream->write("}\n"); m_stream->write("}\n");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment