add some brackets to silence warnings
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user