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:
parent
54698df423
commit
a224f5ab99
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user