Progress for CIF reader, avoid duplicate sorting

This commit is contained in:
Matthias Koefferlein 2023-09-10 16:49:06 +02:00
parent adb0b88440
commit e2fa88fcfb
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,7 @@ CIFReader::get_char ()
error ("Unexpected end of file");
return 0;
} else {
m_progress.set (m_stream.line_number ());
return m_stream.get_char ();
}
}
@ -823,6 +824,8 @@ void
CIFReader::do_read (db::Layout &layout)
{
try {
db::LayoutLocker locker (&layout);
double sf = 0.01 / m_dbu;
layout.dbu (m_dbu);