avoid log(0.0)

If -e is 0, dwgsim tries to log(0.0) and it will result in wrong qstr.