Fix the only static analysis issue left

Posted by dxli on
URL: https://forum.librecad.org/Fix-the-only-static-analysis-issue-left-tp5713603.html

The logic seems to be correct in code, but static analysis keeps reporting this issue:

http://librecad.github.io/static-analyzer-reports/

I suppose there's one elegant way to silence the warning and IMPROVE the code.