* paragraph_pimpl.C

(Paragraph::Pimpl::erase): Fix crash when selecting and erasing
	"blue" paragraph break in CT mode (report JMarc)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13885 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2006-05-20 10:35:40 +00:00
parent b5987c69a1
commit c20bbb35c7

View File

@ -371,10 +371,10 @@ bool Paragraph::Pimpl::erase(pos_type pos)
if (tracking()) {
Change::Type changetype(changes_->lookup(pos).type);
changes_->record(Change(Change::DELETED), pos);
// only allow the actual removal if it was /new/ text
if (changetype != Change::INSERTED) {
changes_->record(Change(Change::DELETED), pos);
if (pos < size() && owner_->isInset(pos))
owner_->getInset(pos)->markErased(true);
return false;