Bug fix in gswe_moment_calculate_antiscia()

antiscion_data->antiscion_axis_info can be NULL, but at that point
antiscion_data->antiscion_axis_info->axes can't be GSWE_ANTISCION_AXIS_NONE
This commit is contained in:
Gergely Polonkai 2013-10-04 00:20:32 +02:00
parent 54698df423
commit a224f5ab99

View File

@ -1245,7 +1245,7 @@ gswe_moment_calculate_antiscia(GsweMoment *moment)
(void)g_hash_table_find(gswe_antiscion_axis_info_table, (GHRFunc)find_antiscion, antiscion_data);
if (antiscion_data->antiscion_axis_info->axis == GSWE_ANTISCION_AXIS_NONE) {
if (antiscion_data->antiscion_axis_info == NULL) {
antiscion_data->antiscion_axis_info = g_hash_table_lookup(gswe_antiscion_axis_info_table, GINT_TO_POINTER(GSWE_ANTISCION_AXIS_NONE));
}