From 4acc336d69e78a63132cdb5b22f983e90110a9eb Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 11 Apr 2018 22:53:55 +0200 Subject: [PATCH] Fixed DXF display issue (see https://www.klayout.de/forum/comments.php?DiscussionID=1053) --- src/db/db/dbShapes.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;