forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.15'
Change-Id: I1d13f3543ab4bb17f0cbfe26bbea3f154f856ca6
This commit is contained in:
@@ -519,8 +519,10 @@ void SubmitEditorWidget::verifyDescription()
|
||||
int secondLineLength = 0;
|
||||
if (subjectLength >= 0) {
|
||||
const int secondLineStart = subjectLength + 1;
|
||||
secondLineLength = d->m_description.indexOf(newLine, secondLineStart)
|
||||
- secondLineStart;
|
||||
int secondLineEnd = d->m_description.indexOf(newLine, secondLineStart);
|
||||
if (secondLineEnd == -1)
|
||||
secondLineEnd = descriptionLength;
|
||||
secondLineLength = secondLineEnd - secondLineStart;
|
||||
} else {
|
||||
subjectLength = descriptionLength;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user