[Libreoffice-commits] .: sdext/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Oct 12 07:36:52 PDT 2010


 sdext/source/presenter/PresenterTextView.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0e3f461562eced501d48eaabb9a0830623083630
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Oct 12 14:30:03 2010 +0100

    add some brackets to silence warnings

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


More information about the Libreoffice-commits mailing list