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. // the previous or the start of the next paragraph.
pParagraph = GetParagraph(nParagraphIndex); pParagraph = GetParagraph(nParagraphIndex);
if (pParagraph) if (pParagraph)
{
if (nDistance<0) if (nDistance<0)
nCharacterIndex = pParagraph->GetCharacterCount(); nCharacterIndex = pParagraph->GetCharacterCount();
else else
nCharacterIndex = 0; nCharacterIndex = 0;
}
} }
} }
else else