Skip to content
Snippets Groups Projects
Commit 9dc18abf authored by Axel Arnold's avatar Axel Arnold Committed by David Faure
Browse files

fix endless loop in KLineEdit->setSqueezedText()

If KLineEdit has squeezed text enabled, but the widget has still zero width, KLineEdit::setSqueezedText() can go into an endless loop trying to remove more than all letters from the string. This patch fixes both this underrun and the corresponding possible overrun if the squeezed text is too small. The underrun is responsible for endless loops in digikam, see the corresponding bug report.

REVIEW: 114519
BUG: 328263
parent 4f004e51
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