Revision: 6407
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6407&view=rev
Author:   mdboom
Date:     2008-11-17 14:38:27 +0000 (Mon, 17 Nov 2008)

Log Message:
-----------
Fix minor bug in findfont -- None input should return default font.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/font_manager.py

Modified: trunk/matplotlib/lib/matplotlib/font_manager.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/font_manager.py     2008-11-17 14:37:14 UTC 
(rev 6406)
+++ trunk/matplotlib/lib/matplotlib/font_manager.py     2008-11-17 14:38:27 UTC 
(rev 6407)
@@ -1180,6 +1180,8 @@
         for a description of the font finding algorithm.
         """
         debug = False
+        if prop is None:
+            return self.defaultFont
         if is_string_like(prop):
             prop = FontProperties(prop)
         fname = prop.get_file()


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to