Export to GitHub

qdevelop - issue #315

Crash when commenting last line of file


Posted on Sep 21, 2008 by Happy Hippo

What steps will reproduce the problem? 1. Open some .cpp ( possibly other type too) file 2. Go to the last line and press CTRL+D ( toggle comment action ) 3.

What is the expected output? What do you see instead? The line should be (un)commented, but QDevelop seems to enter some infinite loop and stops responding.

What version of the product are you using? On what operating system? Tested with latest svn on Win XP

Comment #1

Posted on Sep 23, 2008 by Happy Hippo

This should do the trick. textEdit::comment entered an infinite loop as it tried to position the cursor in the line after the last line to exit the loop which just can't hapen. If the cursor move-to-next-blobk fails I assume that it hapens because there aren't more blocks so the loop terminates with a break. everything else works the same.

cheers, --to

Attachments

Comment #2

Posted on Jan 30, 2009 by Massive Panda

Fixed in revision 359. Thank you.

Status: Fixed

Labels:
Type-Defect Priority-Medium