Comments starting at end of a line can not be uncommented

Task-number: QTCREATORBUG-1177
This commit is contained in:
mae
2010-05-07 15:39:32 +02:00
parent 87b3755b6f
commit 495b7bff45

View File

@@ -70,7 +70,7 @@ void Utils::unCommentSelection(QPlainTextEdit *edit)
start -= 2;
}
bool hasSelStart = (startPos < startText.length() - 2
bool hasSelStart = (startPos < startText.length() - 1
&& startText.at(startPos) == QLatin1Char('/')
&& startText.at(startPos+1) == QLatin1Char('*'));