mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
small stuff (whitspace, spelling...)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7936 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b0650a1e5f
commit
8edd244bb6
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user