[babl/daniel-tolerance-hacks: 14/14] Make babl_fish_path_fitness compatable with new tolerance code.
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl/daniel-tolerance-hacks: 14/14] Make babl_fish_path_fitness compatable with new tolerance code.
- Date: Thu, 7 Feb 2013 20:33:04 +0000 (UTC)
commit d3080cf53a5c5053e0c7371bcc43e474028c8d5e
Author: Daniel Sabo <DanielSabo gmail com>
Date: Thu Feb 7 11:50:12 2013 -0800
Make babl_fish_path_fitness compatable with new tolerance code.
tests/babl_fish_path_fitness.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/babl_fish_path_fitness.c b/tests/babl_fish_path_fitness.c
index 8480fc0..2bc020c 100644
--- a/tests/babl_fish_path_fitness.c
+++ b/tests/babl_fish_path_fitness.c
@@ -43,9 +43,9 @@ static int destination_each (Babl *babl,
printf (" ");
else
{
- Babl *temp = babl_fish_path (source, destination);
+ Babl const *temp = babl_fish (source, destination);
- if (temp)
+ if (temp && temp->class_type == BABL_FISH_PATH)
{
printf ("%s", utf8_bar[babl_list_size (temp->fish_path.conversion_list)]);
total_length += babl_list_size (temp->fish_path.conversion_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]