[email protected] schreef:
Author: vfr
Date: Thu Feb 19 21:53:35 2009
New Revision: 28563
URL: http://www.lyx.org/trac/changeset/28563
Log:
Fix a crash when removing the label of an included Program Listing.
Modified:
lyx-devel/trunk/src/insets/InsetInclude.cpp
Modified: lyx-devel/trunk/src/insets/InsetInclude.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/insets/InsetInclude.cpp?rev=28563
==============================================================================
--- lyx-devel/trunk/src/insets/InsetInclude.cpp (original)
+++ lyx-devel/trunk/src/insets/InsetInclude.cpp Thu Feb 19 21:53:35 2009
@@ -244,9 +244,10 @@
docstring old_label;
if (label_)
old_label = label_->getParam("name");
- if (new_label.empty())
+ if (new_label.empty()) {
delete label_;
- else if (label_ && old_label != new_label) {
+ label_ = 0;
+ } else if (label_ && old_label != new_label) {
label_->updateCommand(new_label);
// the label might have been adapted
(duplicate)
if (new_label !=
label_->getParam("name")) {
_______________________________________________
Cvslog mailing list
[email protected]
http://www.lyx.org/mailman/listinfo/cvslog
Also for branch ?
Vincent