[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 4912de9a: Library (eps.h): Linewidth not re-wr
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 4912de9a: Library (eps.h): Linewidth not re-written when given |
Date: |
Mon, 29 Aug 2022 18:40:51 -0400 (EDT) |
branch: master
commit 4912de9a69a30004659626b8f5334a79db590c92
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Library (eps.h): Linewidth not re-written when given
Until now, when the linewidth was given, it would be mistakenly reset when
it was not different from the other marks.
With this commit, the argument that is used to write the line width is
given the proper line width and accounting of the line width in other steps
is done through the 'lwidthv' variable (that was causing a re-write).
This issue was reported by Sepideh Eskandarlou.
---
lib/eps.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/eps.c b/lib/eps.c
index 494ee7a3..61c0d220 100644
--- a/lib/eps.c
+++ b/lib/eps.c
@@ -998,7 +998,8 @@ eps_mark_add(gal_data_t *in, gal_data_t *marks, FILE *fp,
eps_mark_size2(shape, size2, i),
pix_in_pt, borderwidth, ymin, shapev,
&x, &y, &s1, &s2, &yminpt);
- eps_mark_add_shape(fp, i, x, y, s1, s2, lwidthv,
+ eps_mark_add_shape(fp, i, x, y, s1, s2,
+ lwidth ? lwidth[i] : NAN,
color ? color[i] : GAL_BLANK_UINT8,
shapev,
rotate ? rotate[i] : GAL_BLANK_FLOAT32,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 4912de9a: Library (eps.h): Linewidth not re-written when given,
Mohammad Akhlaghi <=