Bugfix: could drag and drop a cell in viewer mode.

This commit is contained in:
Matthias Koefferlein 2017-07-10 22:19:16 +02:00
parent 986cb7f0c2
commit be20bdd9cc
1 changed files with 1 additions and 1 deletions

View File

@ -1142,7 +1142,7 @@ bool
InstService::drag_enter_event (const db::DPoint &p, const lay::DragDropDataBase *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 ();