Skip to content

Commit

Permalink
Fix FigureCanvasBase
Browse files Browse the repository at this point in the history
  • Loading branch information
OceanWolf committed Jun 23, 2015
1 parent 8109dc7 commit 8f29e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -2280,15 +2280,15 @@ def get_window_title(self):
Get the title text of the window containing the figure.
Return None if there is no window (e.g., a PS backend).
"""
if hasattr(self, "manager"):
if getattr(self, "manager", None):
return self.manager.get_window_title()

def set_window_title(self, title):
"""
Set the title text of the window containing the figure. Note that
this has no effect if there is no window (e.g., a PS backend).
"""
if hasattr(self, "manager"):
if getattr(self, "manager", None):
self.manager.set_window_title(title)

def get_default_filename(self):
Expand Down

0 comments on commit 8f29e31

Please sign in to comment.