diff --git a/applications/fpvviewer/fpvectorialsrc/dxfvectorialreader.pas b/applications/fpvviewer/fpvectorialsrc/dxfvectorialreader.pas index 5ca14d994..a8848bef3 100644 --- a/applications/fpvviewer/fpvectorialsrc/dxfvectorialreader.pas +++ b/applications/fpvviewer/fpvectorialsrc/dxfvectorialreader.pas @@ -353,6 +353,11 @@ begin begin // Now read and process the item name CurToken := TDXFToken(ATokens.Items[i]); + + // Avoid an exception by previously checking if the conversion can be made + if (CurToken.StrValue = 'AcDbEntity') or + (CurToken.StrValue = 'AcDbLine') then Continue; + CurToken.FloatValue := StrToFloat(Trim(CurToken.StrValue)); case CurToken.GroupCode of