mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-19 05:53:35 +00:00
branch: Fix a crash when removing the label of an included Program Listing.
See also: http://www.lyx.org/trac/changeset/28563 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28570 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c0714cb5be
commit
a9e9e03ce9
@ -243,9 +243,10 @@ void InsetInclude::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
docstring old_label;
|
docstring old_label;
|
||||||
if (label_)
|
if (label_)
|
||||||
old_label = label_->getParam("name");
|
old_label = label_->getParam("name");
|
||||||
if (new_label.empty())
|
if (new_label.empty()) {
|
||||||
delete label_;
|
delete label_;
|
||||||
else if (label_ && old_label != new_label) {
|
label_ = 0;
|
||||||
|
} else if (label_ && old_label != new_label) {
|
||||||
label_->updateCommand(new_label);
|
label_->updateCommand(new_label);
|
||||||
// the label might have been adapted (duplicate)
|
// the label might have been adapted (duplicate)
|
||||||
if (new_label != label_->getParam("name")) {
|
if (new_label != label_->getParam("name")) {
|
||||||
|
@ -181,6 +181,8 @@ What's new
|
|||||||
- Fix a crash when pressing the Update button of the Citation dialog
|
- Fix a crash when pressing the Update button of the Citation dialog
|
||||||
for read-only documents (bug 5785).
|
for read-only documents (bug 5785).
|
||||||
|
|
||||||
|
- Fix a crash when removing the label of an included Program Listing.
|
||||||
|
|
||||||
- Ignore the master_buffer setting in Document>Settings if the current
|
- Ignore the master_buffer setting in Document>Settings if the current
|
||||||
document is no real child. This fixes a crash when using the outliner
|
document is no real child. This fixes a crash when using the outliner
|
||||||
in such files (bug 5653).
|
in such files (bug 5653).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user