Commit 895bb2ad authored by Laurent Montel's avatar Laurent Montel 😁

Fix crash when we uncomment text

parent 3ab9457d
......@@ -391,7 +391,7 @@ void SieveTextEdit::uncomment()
for (int i = 0; i < newText.length(); ++i) {
if (newText.at(i) == QChar::ParagraphSeparator || newText.at(i) == QChar::LineSeparator) {
++i;
if (i < text.length()) {
if (i < newText.length()) {
if (newText.at(i) == QLatin1Char('#')) {
newText.remove(i, 1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment