diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-12 14:30:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-12 14:30:03 +0100 |
commit | 0e3f461562eced501d48eaabb9a0830623083630 (patch) | |
tree | 5fdf6fcb42d97780e110966a88fd57694e54142c | |
parent | b63696bc329e00a476ba73082aedf351fbccd87d (diff) |
add some brackets to silence warnings
-rw-r--r-- | sdext/source/presenter/PresenterTextView.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx index 5e941b0..74a540f 100644 --- a/sdext/source/presenter/PresenterTextView.cxx +++ b/sdext/source/presenter/PresenterTextView.cxx @@ -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 |