summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-12 14:30:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-12 14:30:03 +0100
commit0e3f461562eced501d48eaabb9a0830623083630 (patch)
tree5fdf6fcb42d97780e110966a88fd57694e54142c
parentb63696bc329e00a476ba73082aedf351fbccd87d (diff)
add some brackets to silence warnings
-rw-r--r--sdext/source/presenter/PresenterTextView.cxx2
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