mirror of https://github.com/KLayout/klayout.git
Bugfix: could drag and drop a cell in viewer mode.
This commit is contained in:
parent
986cb7f0c2
commit
be20bdd9cc
|
|
@ -1142,7 +1142,7 @@ bool
|
||||||
InstService::drag_enter_event (const db::DPoint &p, const lay::DragDropDataBase *data)
|
InstService::drag_enter_event (const db::DPoint &p, const lay::DragDropDataBase *data)
|
||||||
{
|
{
|
||||||
const lay::CellDragDropData *cd = dynamic_cast <const lay::CellDragDropData *> (data);
|
const lay::CellDragDropData *cd = dynamic_cast <const lay::CellDragDropData *> (data);
|
||||||
if (cd && cd->layout () == & view ()->active_cellview ()->layout ()) {
|
if (view ()->is_editable () && cd && cd->layout () == & view ()->active_cellview ()->layout ()) {
|
||||||
|
|
||||||
view ()->cancel ();
|
view ()->cancel ();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue