mirror of https://github.com/KLayout/klayout.git
Fixed a segfault happening when closing a layout tab.
This commit is contained in:
parent
1c58bb8e02
commit
9fbc39a827
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
|
||||
#include "layProperties.h"
|
||||
#include "layEditable.h"
|
||||
|
||||
namespace lay
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#define HDR_layProperties
|
||||
|
||||
#include "laybasicCommon.h"
|
||||
#include "layEditable.h"
|
||||
|
||||
#include <QFrame>
|
||||
|
||||
|
|
@ -209,7 +210,7 @@ public:
|
|||
*/
|
||||
lay::Editable *editable ()
|
||||
{
|
||||
return mp_editable;
|
||||
return mp_editable.get ();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -229,7 +230,7 @@ signals:
|
|||
|
||||
private:
|
||||
db::Manager *mp_manager;
|
||||
lay::Editable *mp_editable;
|
||||
tl::weak_ptr<lay::Editable> mp_editable;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue