-
Thomas Hartmann authored
This fixes a tack overflow caused by an exponential number of combination tested. We try to find the optimal solution for line breaks by brute force. Unfortunately this leads to a stack overflow, if two many line breaks are possible. This patch limits the number of possible line break positions to 11. If there are more possible line breaks we remove every second one. This seems to be a reasonable enough heuristic and we deal with a corner case anyway. Task-number: QTCREATORBUG-17331 Change-Id: I1b80fc3eaa0e148aec30fc57ac75824181f2d883 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
95366d25