gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #16115] ds9.c: polygon expects ')' at end


From: Pedram Ashofteh Ardakani
Subject: [task #16115] ds9.c: polygon expects ')' at end
Date: Tue, 1 Feb 2022 09:47:21 -0500 (EST)

Follow-up Comment #1, task #16115 (project gnuastro):

I fixed it in commit 74343cd38f
<https://codeberg.org/pedramardakani/gnuastro/commit/74343cd38fc6896712d388f9e317f9e8893bd1c6>.

== commit message ==

Library (ds9.c): fix "polygon expects ')' at end"

Until now, the ds9.c library looked for the ')' in the line that started
with 'polygon(' and then, only checked the last character to see if the
'polygon(' has a matching ')'.

This raised problems when the region file contained meta data following the
polygon command starting with '#'. It happens when the user customizes any
of the 'polygon' properties in ds9.

With this commit, the ds9.c library reads the entire line, and stops
whenever it spots the matching ')'. If not, throws the error same as
before.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?16115>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]