mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
* 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:
parent
b5987c69a1
commit
c20bbb35c7
@ -371,10 +371,10 @@ bool Paragraph::Pimpl::erase(pos_type pos)
|
|||||||
|
|
||||||
if (tracking()) {
|
if (tracking()) {
|
||||||
Change::Type changetype(changes_->lookup(pos).type);
|
Change::Type changetype(changes_->lookup(pos).type);
|
||||||
changes_->record(Change(Change::DELETED), pos);
|
|
||||||
|
|
||||||
// only allow the actual removal if it was /new/ text
|
// only allow the actual removal if it was /new/ text
|
||||||
if (changetype != Change::INSERTED) {
|
if (changetype != Change::INSERTED) {
|
||||||
|
changes_->record(Change(Change::DELETED), pos);
|
||||||
if (pos < size() && owner_->isInset(pos))
|
if (pos < size() && owner_->isInset(pos))
|
||||||
owner_->getInset(pos)->markErased(true);
|
owner_->getInset(pos)->markErased(true);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user