]> git.lyx.org Git - features.git/commitdiff
small stuff (whitspace, spelling...)
authorAndré Pönitz <poenitz@gmx.net>
Mon, 20 Oct 2003 11:41:21 +0000 (11:41 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 20 Oct 2003 11:41:21 +0000 (11:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7936 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.C
src/lyxrow_funcs.C
src/text.C

index f4b655850bdd125b1b8dcc2e9cfd1f63c6b70c80..dd17b915d5161a8f42d4bbb32c6cfa9f80c1d80b 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Alfredo Braustein
+ * \author Alfredo Braunstein
  * \author Lars Gullik Bjønnes
  * \author John Levon
  * \author André Pönitz
@@ -280,15 +280,15 @@ bool BufferView::insertLyXFile(string const & filen)
 void BufferView::showErrorList(string const & action) const
 {
        if (getErrorList().size()) {
-               string const title = bformat(_("LyX: %1$s errors (%2$s)"), action, buffer()->fileName());
+               string const title = bformat(_("LyX: %1$s errors (%2$s)"),
+                       action, buffer()->fileName());
                owner()->getDialogs().show("errorlist", title);
                pimpl_->errorlist_.clear();
        }
 }
 
 
-ErrorList const &
-BufferView::getErrorList() const
+ErrorList const & BufferView::getErrorList() const
 {
        return pimpl_->errorlist_;
 }
@@ -402,14 +402,14 @@ void BufferView::replaceWord(string const & replacestring)
        if (!available())
                return;
 
-       LyXText * tt = getLyXText();
+       LyXText * text = getLyXText();
 
-       tt->replaceSelectionWithString(replacestring);
-       tt->setSelectionRange(replacestring.length());
+       text->replaceSelectionWithString(replacestring);
+       text->setSelectionRange(replacestring.length());
 
        // Go back so that replacement string is also spellchecked
        for (string::size_type i = 0; i < replacestring.length() + 1; ++i)
-               tt->cursorLeft(this);
+               text->cursorLeft(this);
 
        // FIXME: should be done through LFUN
        buffer()->markDirty();
index 446e53979fc21b253cf5e40d24b3c79219deff68..e7af3d086fa557af4a56c55700e8efb9b65df7db 100644 (file)
@@ -113,9 +113,10 @@ bool hfillExpansion(Paragraph const & par, Row const & row, pos_type pos)
 
        // at the end of a row it does not count
        // unless another hfill exists on the line
-       if (pos >= lastPos(par, row))
+       if (pos >= lastPos(par, row)) {
                for (pos_type i = row.pos(); i < pos && !par.isHfill(i); ++i)
                        return false;
+       }
 
        // at the beginning of a row it does not count, if it is not
        // the first row of a paragaph
index 6baf7f4b6c1d5034cc6b2e57a1bec5d76f4fee3e..6e6a0bd7f453031370e4831f31d180cf68f9a073 100644 (file)
@@ -109,7 +109,7 @@ int LyXText::workWidth() const
 int LyXText::getRealCursorX() const
 {
        int x = cursor.x();
-       if (the_locking_inset && (the_locking_inset->getLyXText(bv())!= this))
+       if (the_locking_inset && the_locking_inset->getLyXText(bv()) != this)
                x = the_locking_inset->getLyXText(bv())->getRealCursorX();
        return x;
 }
@@ -157,7 +157,7 @@ unsigned char LyXText::transformChar(unsigned char c, Paragraph const & par,
 // There are some issues in this file and I don't think they are
 // really related to the FIX_DOUBLE_SPACE patch. I'd rather think that
 // this is a problem that has been here almost from day one and that a
-// larger userbase with differenct access patters triggers the bad
+// larger userbase with different access patters triggers the bad
 // behaviour. (segfaults.) What I think happen is: In several places
 // we store the paragraph in the current cursor and then moves the
 // cursor. This movement of the cursor will delete paragraph at the