mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-30 09:49:21 +02:00
Fixed a segfault happening when closing a layout tab.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user