Re: [Development] Qt bug (crash on drag-n-drop on QPlainTextEdit)

2018-04-24 Thread Thiago Macieira
On Tuesday, 24 April 2018 22:37:33 PDT Thiago Radicchi Roque wrote: > 1. Is this the right way to fix the problem? From a quick look at the code, no. The construction is basically: QTextBlock block = control->document()->findBlock(position); if (!block.isValid()) return; [...]

[Development] Qt bug (crash on drag-n-drop on QPlainTextEdit)

2018-04-24 Thread Thiago Radicchi Roque
Hi, Recently I ran into a crash while doing drag-n-drop on some application that uses QPlainTextEdit from Qt 4.6.3. The crash happens when the text being dropped is large, causing the QPlainTextEdit to have a vertical scroll bar. I was able to fix it with the following patch: diff -r 15465e31f