tonkv / qdevelop

Automatically exported from code.google.com/p/qdevelop
0 stars 0 forks source link

Endlessy loop when comment or toggle comment in empty line. #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. toggle comment empty line.
2. comment empty line
3.

What is the expected output? What do you see instead?
Endlessy loop

What version of the product are you using? On what operating system?
QDevelop 0.22 r96

Please provide any additional information below.
Error in TextEdit.cpp
void TextEdit::comment(ActionComment action)
....
    while (!(endBlock < block))
    {
        QString text = block.text();
/// ??????????????????????????//
        if (text.isEmpty())     /// Error
            continue;           /// Endlessy loop
/// ??????????????????????????//
        int i = 0;
......

Original issue reported on code.google.com by a...@ukr.net on 19 Dec 2006 at 6:26

GoogleCodeExporter commented 8 years ago
A control is made on the beginning of the function.

Original comment by jlbi...@gmail.com on 25 May 2007 at 1:51

GoogleCodeExporter commented 8 years ago
Fixed in revision 142.

Original comment by kraz...@gmail.com on 11 Jun 2007 at 12:32

GoogleCodeExporter commented 8 years ago
Fixed in revision 142.

Original comment by jlbi...@gmail.com on 11 Jun 2007 at 4:40