summaryrefslogtreecommitdiff
path: root/sdext
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
commit5ff6152b922c83ad7981ae117c180a0e9fdaf1df (patch)
tree4d88e6037eae78ea803bd1c377075a4f08d152e0 /sdext
parentdabf797dd026262476189a0678c45b2219469e50 (diff)
add some brackets to silence warnings
Diffstat (limited to 'sdext')
-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 8cd308dc230f..b0cc9f4cc9c9 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