add some brackets to silence warnings

This commit is contained in:
Caolán McNamara
2010-10-12 14:30:03 +01:00
parent dabf797dd0
commit 5ff6152b92

View File

@@ -380,10 +380,12 @@ void PresenterTextView::MoveCaret (
// the previous or the start of the next paragraph.
pParagraph = GetParagraph(nParagraphIndex);
if (pParagraph)
{
if (nDistance<0)
nCharacterIndex = pParagraph->GetCharacterCount();
else
nCharacterIndex = 0;
}
}
}
else