[hamster-applet] fixed plot errors on no data
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] fixed plot errors on no data
- Date: Thu, 31 Dec 2009 19:30:29 +0000 (UTC)
commit 69ba62597fe1002182826b7a39dd22fa30217d12
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Dec 31 19:11:49 2009 +0000
fixed plot errors on no data
hamster/stats_reports.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/hamster/stats_reports.py b/hamster/stats_reports.py
index e255e59..644a479 100644
--- a/hamster/stats_reports.py
+++ b/hamster/stats_reports.py
@@ -211,7 +211,7 @@ class ReportsBox(gtk.VBox):
self.category_chart.plot(*self.category_sums)
else:
self.get_widget("totals_by_category").set_size_request(280, 10)
- self.category_chart.plot(([],[]))
+ self.category_chart.plot([],[])
self.get_widget("totals_by_activity").set_size_request(10,10)
self.get_widget("totals_by_activity").set_size_request(280, len(self.activity_sums[0]) * 20)
@@ -223,7 +223,7 @@ class ReportsBox(gtk.VBox):
self.tag_chart.plot(*self.tag_sums)
else:
self.get_widget("totals_by_tag").set_size_request(280, 10)
- self.tag_chart.plot(([],[]))
+ self.tag_chart.plot([],[])
def get_widget(self, name):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]