blob: 822f3491427b58af01e30ed78a695433b2ba06f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
Issue 532; https://github.com/mdboom/matplotlib/commit/81068e9967387ea69133277242a9804d646ea4ef
diff -ur matplotlib-1.2.0.orig/src/ft2font.cpp matplotlib-1.2.0/src/ft2font.cpp
--- src/ft2font.cpp 2012-10-31 08:11:14.000000000 +0800
+++ src/ft2font.cpp 2012-11-29 11:09:43.569808461 +0800
@@ -852,28 +852,24 @@
{
std::ostringstream s;
s << "Could not load facefile " << facefile << "; Unknown_File_Format" << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
else if (error == FT_Err_Cannot_Open_Resource)
{
std::ostringstream s;
s << "Could not open facefile " << facefile << "; Cannot_Open_Resource" << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
else if (error == FT_Err_Invalid_File_Format)
{
std::ostringstream s;
s << "Could not open facefile " << facefile << "; Invalid_File_Format" << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
else if (error)
{
std::ostringstream s;
s << "Could not open facefile " << facefile << "; freetype error code " << error << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
@@ -891,7 +887,6 @@
{
std::ostringstream s;
s << "Could not set the fontsize for facefile " << facefile << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
|