mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Fixed crash on empty line
This commit is contained in:
parent
7560f1a7c4
commit
0dea56cc90
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user