fix free memory read when pasting + some typos

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2776 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-09-20 10:16:24 +00:00
parent ca3fd99573
commit eec568d870
7 changed files with 17 additions and 9 deletions

View File

@ -231,7 +231,7 @@ void BufferView::menuUndo()
beforeChange(text);
update(text, BufferView::SELECT|BufferView::FITCUR);
if (!textUndo(this))
owner()->message(_("No forther undo information"));
owner()->message(_("No further undo information"));
else
update(text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
setState();

View File

@ -2738,7 +2738,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
if (floatList.typeExist(argument)) {
insertAndEditInset(new InsetFloat(argument));
} else {
lyxerr << "Non-existant float type: "
lyxerr << "Non-existent float type: "
<< argument << endl;
}
break;
@ -2754,7 +2754,7 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
else
delete new_inset;
} else {
lyxerr << "Non-existant float type: "
lyxerr << "Non-existent float type: "
<< argument << endl;
}

View File

@ -1,3 +1,13 @@
2001-09-20 Michael Schmitt <Michael.Schmitt@teststep.org>
* several files: fix typos in user-visible strings
2001-09-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* text2.C (pasteSelection): do not set the selection, since it
will be cleared later. Actually, the intent was to fix the way the
selection was set, but I figured rmoving the code was just as good.
2001-09-19 Dekel Tsur <dekelts@tau.ac.il>
* FontLoader.C (available): Check if font is available without

View File

@ -19,7 +19,7 @@ string const InsetFloatList::getScreenLabel(Buffer const *) const
string const res = guiName + _(" List");
return res;
}
return _("ERROR nonexistant float type!");
return _("ERROR: Nonexistent float type!");
}

View File

@ -358,7 +358,7 @@ void AutoSave(BufferView * bv)
// It is dangerous to do this in the child,
// but safe in the parent, so...
if (pid == -1)
bv->owner()->message(_("Autosave Failed!"));
bv->owner()->message(_("Autosave failed!"));
}
}
if (pid == 0) { // we are the child so...

View File

@ -1839,8 +1839,8 @@ void LyXText::pasteSelection(BufferView * bview)
Paragraph * endpar;
Paragraph * actpar = cursor.par();
int pos = cursor.pos();
CutAndPaste::pasteSelection(&actpar, &endpar, pos,
bview->buffer()->params.textclass);
@ -1849,9 +1849,7 @@ void LyXText::pasteSelection(BufferView * bview)
setCursor(bview, cursor.par(), cursor.pos());
clearSelection();
selection.cursor = cursor;
setCursor(bview, actpar, pos);
setSelection(bview);
updateCounters(bview, cursor.row());
}