Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
a7dc5cb8c0 | |||
8d3e16465d | |||
b7f7f0c02a | |||
7b28bb519c | |||
f814f26ef4 | |||
46a59fedf6 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -80,6 +80,7 @@ src/gswe-enumtypes.c
|
||||
src/gswe-enumtypes.h
|
||||
src/gswetest
|
||||
/data/swe-glib.pc
|
||||
/data/swe-glib.spec
|
||||
|
||||
# Documentation related files
|
||||
/docs/reference/*/*.args
|
||||
|
@@ -1,6 +1,6 @@
|
||||
m4_define([swe_glib_major_version], [1])
|
||||
m4_define([swe_glib_minor_version], [0])
|
||||
m4_define([swe_glib_micro_version], [1])
|
||||
m4_define([swe_glib_micro_version], [3])
|
||||
m4_define([swe_glib_version], [swe_glib_major_version.swe_glib_minor_version.swe_glib_micro_version])
|
||||
m4_define([swe_glib_api_version], [swe_glib_major_version.0])
|
||||
|
||||
@@ -58,5 +58,6 @@ AC_CONFIG_FILES([
|
||||
docs/reference/swe-glib/version.xml
|
||||
docs/reference/swe-glib/Makefile
|
||||
data/swe-glib.pc
|
||||
data/swe-glib.spec
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
@@ -61,5 +61,5 @@ sweph_DATA = \
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(sweph_DATA) \
|
||||
swe-glib-$(SWE_GLIB_VERSION).spec
|
||||
swe-glib.spec
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
Name: swe-glib
|
||||
Version: 1.0.1
|
||||
Version: @SWE_GLIB_VERSION@
|
||||
Release: 1%{?dist}
|
||||
Summary: A GLib style wrapper library around the Swiss Ephemeris library, created by Astrodienst.
|
||||
|
@@ -476,6 +476,12 @@ gswe_calculate_data_by_position(GsweMoment *moment, GswePlanet planet, gdouble p
|
||||
|
||||
sign = (GsweZodiac)ceil(position / 30.0);
|
||||
|
||||
// If position happens to be exactly 0, this calculation yields
|
||||
// GSWE_SIGN_NONE, but should be GSWE_SIGN_ARIES
|
||||
if (sign == 0) {
|
||||
sign = 1;
|
||||
}
|
||||
|
||||
if ((sign_info = g_hash_table_lookup(gswe_sign_info_table, GINT_TO_POINTER(sign))) == NULL) {
|
||||
g_error("Calculations brought an unknown sign!");
|
||||
}
|
||||
@@ -715,6 +721,8 @@ gswe_moment_calculate_all_planets(GsweMoment *moment)
|
||||
GList *
|
||||
gswe_moment_get_all_planets(GsweMoment *moment)
|
||||
{
|
||||
gswe_moment_calculate_all_planets(moment);
|
||||
|
||||
return moment->priv->planet_list;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user