delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/01/16/15:23:40

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:x-received:date:message-id:subject:from:to
:content-type;
bh=gj2JPjwyxhbFsFEca3kI4k4d5e8B+2/kxVLefpw1EL8=;
b=NL10FzayBywBmpxguu6VzfkU7BxVRxQueUWJO8eN5Dc/m7p3Dx7FsQkWEvMQ4FgPGO
GDHFzQmoD7/R2V5mQahM5dfPsk65YYW044pzvAV/XVXNd7m88mrpndI3DuazrcpNqgLI
dyIDI0TEJd3JCSot2SOrLrCN0ew5f4GgyTHlQC89hFplnPMnxFpR4sznFYm4TPXxSlD4
b4MJ2X4l1XoccZLIWLZy8UPcMLz8mQIjw5VUgzk7CTPVSEVqIw9aRqNvlvdBbWv2mdIl
Fosrteo4F0hKTDqyVClVDqptE2920zZN2+iKrjKI/3qNEvmEF0hIH7cpbNE9bNckVxpH
cFxw==
MIME-Version: 1.0
X-Received: by 10.42.63.145 with SMTP id c17mr1554699ici.22.1358367804194;
Wed, 16 Jan 2013 12:23:24 -0800 (PST)
Date: Wed, 16 Jan 2013 18:23:24 -0200
Message-ID: <CAFfN_23UzAVVk0-TSZyVZihFmq1-0v0gpB7o4uxe3KgxDFDG0w@mail.gmail.com>
Subject: [geda-user] libgeda circle parsing
From: =?UTF-8?Q?Antonio_Todo_Bom_=E2=9C=88?= <atodobom AT gmail DOT com>
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com

--90e6ba3fcd87717e6304d36da6ad
Content-Type: text/plain; charset=ISO-8859-1

I don't know if I'm right, but analysing the code at o_circle_basic.c, I
found:


  if (radius <= 0) {
    s_log_message(_("Found a zero or negative radius circle [ %c %d %d %d
%d ]\n"),
                  type, x1, y1, radius, color);
    s_log_message (_("Setting radius to 0\n"));
    radius = 0;
  }


  If the routine certifies that circle has not a null or negative radius,
why it adjusts it to zero? Couldn't be better to adjust to any non zero
standard value, to turn the object more visible at the design?

Regards,

Antonio

--90e6ba3fcd87717e6304d36da6ad
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I don&#39;t know if I&#39;m right, but analysing the code =
at o_circle_basic.c, I found:<div><br></div><div><div><br></div><div>=A0 if=
 (radius &lt;=3D 0) {</div><div>=A0 =A0 s_log_message(_(&quot;Found a zero =
or negative radius circle [ %c %d %d %d %d ]\n&quot;),</div>
<div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 type, x1, y1, radius, color);</div=
><div>=A0 =A0 s_log_message (_(&quot;Setting radius to 0\n&quot;));</div><d=
iv>=A0 =A0 radius =3D 0;</div><div>=A0 }</div><div><br></div><div><br></div=
><div>=A0=A0If the routine certifies that circle has not a null or negative=
 radius, why it adjusts it to zero? Couldn&#39;t be better to adjust to any=
 non zero standard value, to turn the object more visible at the design?</d=
iv>
</div><div><br></div><div style>Regards,</div><div style><br></div><div sty=
le>Antonio</div></div>

--90e6ba3fcd87717e6304d36da6ad--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019