Skip to content
Snippets Groups Projects
Commit bd476221 authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Erik Verbruggen
Browse files

Fix out-of-memory crash when indenting generated tokens.


Generated tokens do not have a position in any source file, so not try
to indent them. Previously, the 'source' used was the scratch buffer,
which would not contain newlines, so the indent depth would be the
length of the scratch buffer at that point.

Task-number: QTCREATORBUG-7262
Change-Id: If94213d6dffd13dd2b47c7038ec2398ad925d904
Reviewed-by: default avatarYuchen Deng <loaden@gmail.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 3f4a9548
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment