mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 17:34:12 +02:00
75a7e642e0
A symbol with a "nan" or "inf" coordinate (bugtracker #266 had a line with x1="nan" x2="nan") opened with that shape invisible and the view off-centre. Moving the selection then snapped NaN through qRound() to INT_MIN, and saving wrote width="-2147483630", breaking the symbol. The folio already leaves such a shape out (ElementPictureFactory reads it with QET::attributeIsAReal()). Do the same in the element editor, and have --check-elements warn about it. Only geometry attributes are read, so a text whose content is "inf" is not affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>