Fixed crash on empty line

This commit is contained in:
Vadim Kuznetsov 2024-02-04 16:23:07 +03:00
parent 7560f1a7c4
commit 0dea56cc90

View File

@ -866,6 +866,8 @@ bool Schematic::loadPaintings(QTextStream *stream, Q3PtrList<Painting> *List)
QString Line, cstr;
while(!stream->atEnd()) {
Line = stream->readLine();
if (Line.trimmed().isEmpty()) continue;
if(Line.at(0) == '<') if(Line.at(1) == '/') return true;
Line = Line.trimmed();