Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAneesh Dogra <lionaneesh@gmail.com>2012-12-22 16:21:45 (GMT)
committer Aneesh Dogra <lionaneesh@gmail.com>2012-12-22 16:21:45 (GMT)
commit20991f2168add6a05c19852bc631940116064e67 (patch)
tree5c304062d3bd3d16d4cc88fed07339cbfdb54504
parentf068c4d5c1709c6b282eee7c9196f6a77227fc88 (diff)
Re-add canplot check.
-rw-r--r--ConstellationsFlashCards.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ConstellationsFlashCards.py b/ConstellationsFlashCards.py
index 2e133b6..386d32c 100644
--- a/ConstellationsFlashCards.py
+++ b/ConstellationsFlashCards.py
@@ -330,8 +330,10 @@ class ChartDisplay(Gtk.DrawingArea):
# Methods for drawing the chart:
def plotchart(self, newplot):
- self.plot_field()
- self.plot_sky(newplot)
+ if self.canplot:
+ self.plot_field()
+ self.plot_sky(newplot)
+ return True
def plot_field(self):