Review Request 114519: fix endless loop in KLineEdit->setSqueezedText()

Axel Arnold arnolda747 at
Sat Dec 21 00:31:38 GMT 2013

This is an automatically generated e-mail. To reply, visit:

(Updated Dec. 21, 2013, 12:31 a.m.)


This change has been marked as submitted.

Review request for kdelibs.

Bugs: 328263

Repository: kdelibs


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.


  kdeui/widgets/klineedit.cpp 2193ef2969d49ad602e66da7776feda4b7595b13 




Axel Arnold

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list