File: font.c.patch

package info (click to toggle)
libwmf 0.2.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,240 kB
  • sloc: ansic: 53,532; sh: 4,891; makefile: 608; perl: 140
file content (14 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/font.c b/src/font.c
index cef40e5..947c5bc 100644
--- a/src/font.c
+++ b/src/font.c
@@ -1781,6 +1781,9 @@ static char* ipa_font_path_find (wmfAPI* API,char* file_name)
 	unsigned int count;
 	unsigned int i;
 
+	if (file_name[0] == '/' && stat (file_name,&stat_buf) == 0)
+		return wmf_strdup (API,file_name);
+
 	char* path = 0;
 
 	/* Determine length of string required to hold path name of font