Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguzubiaga97@gmail.com>2012-02-04 16:18:20 (GMT)
committer Agustin Zubiaga <aguzubiaga97@gmail.com>2012-02-04 16:18:20 (GMT)
commit44bcb99d1142cecdb916c02cd375899c91907b37 (patch)
tree94aea95f7012314ab12799a4164f64ea6c6aa7d5 /activity.py
parent63ad55ab07a8ae73d0f626f3a92abeb6ffc95c7d (diff)
Bugs in read_file method fixed.
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/activity.py b/activity.py
index c053af8..68f9d53 100644
--- a/activity.py
+++ b/activity.py
@@ -465,12 +465,14 @@ class SimpleGraph(activity.Activity):
self.metadata["title"] = line
elif num == 2:
- self.options[2].set_text(line)
- self.x_label = line
+ if line != "":
+ self.options[2].entry.set_text(line)
+ self.x_label = line
elif num == 3:
- self.options[3].set_text(line)
- self.y_label = line
+ if line != "":
+ self.options[3].entry.set_text(line)
+ self.y_label = line
elif num == 4:
self.chart_color = line