hamster-applet r454 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r454 - trunk/hamster
- Date: Sat, 30 Aug 2008 08:13:18 +0000 (UTC)
Author: tbaugis
Date: Sat Aug 30 08:13:18 2008
New Revision: 454
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=454&view=rev
Log:
totally awesome confusion between width and height
Modified:
trunk/hamster/charting.py
Modified: trunk/hamster/charting.py
==============================================================================
--- trunk/hamster/charting.py (original)
+++ trunk/hamster/charting.py Sat Aug 30 08:13:18 2008
@@ -356,7 +356,7 @@
graph_width = step * records #no need to have that white stuff
graph_y = rect.y
- graph_height = graph_y - rect.x + rect.height - 15
+ graph_height = rect.height - 15
max_size = graph_height - 15
@@ -506,7 +506,7 @@
graph_width = rect.width + rect.x - graph_x
graph_y = rect.y
- graph_height = graph_y - rect.x + rect.height
+ graph_height = rect.height
step = int(graph_height / float(records)) if records > 0 else 30
@@ -620,7 +620,7 @@
step = graph_width / float(records)
graph_y = rect.y
- graph_height = graph_y - rect.x + rect.height - 15
+ graph_height = rect.height - 15
max_size = graph_height - 15
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]