diff --git a/src/db/db/dbShapes.cc b/src/db/db/dbShapes.cc index 274a2a2e9..ef848cdc1 100644 --- a/src/db/db/dbShapes.cc +++ b/src/db/db/dbShapes.cc @@ -120,7 +120,10 @@ Shapes::operator= (const Shapes &d) { if (&d != this) { clear (); - do_insert (d); + if (! d.empty()) { + invalidate_state (); + do_insert (d); + } } return *this;