6 Commits

Author SHA1 Message Date
a7dc5cb8c0 Fixed data/Makefile.am 2013-09-18 11:59:00 +02:00
8d3e16465d Incremented patch version 2013-09-18 11:55:40 +02:00
b7f7f0c02a Bug fix: gswe_moment_get_all_planets() didn't calculate planet positions before returning the list 2013-09-18 11:55:26 +02:00
7b28bb519c RPM spec file is now generated
Version number no longer needs to be updated
2013-09-18 11:54:05 +02:00
f814f26ef4 Fixed RPM version in .spec file 2013-09-17 09:53:19 +02:00
46a59fedf6 Fixed zodiac calculation in GsweMoment
Yielded GSWE_SIGN_NONE instead of GSWE_SIGN_ARIES at position 0.0
2013-09-17 09:43:10 +02:00
5 changed files with 13 additions and 3 deletions

1
.gitignore vendored
View File

@@ -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

View File

@@ -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

View File

@@ -61,5 +61,5 @@ sweph_DATA = \
EXTRA_DIST = \
$(sweph_DATA) \
swe-glib-$(SWE_GLIB_VERSION).spec
swe-glib.spec

View File

@@ -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.

View File

@@ -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;
}