summaryrefslogtreecommitdiffstats
path: root/src/structs
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-07-24 11:55:24 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-07-24 11:55:24 +0000
commitff849eb9f302289b044b9f98eadc02cca4ed2130 (patch)
tree23c0f6d4e2ab84451d22b43ce98d9f0cc120ccee /src/structs
parent49ded86c90d1bfa6cc0b780b1ad00544f9d198fd (diff)
downloadzetacomponents-graph-ff849eb9f302289b044b9f98eadc02cca4ed2130.zip
zetacomponents-graph-ff849eb9f302289b044b9f98eadc02cca4ed2130.tar.gz
- Finished exact label renderer and render chart labals again
Diffstat (limited to 'src/structs')
-rw-r--r--src/structs/boundings.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/structs/boundings.php b/src/structs/boundings.php
index 10a2e94..ee58305 100644
--- a/src/structs/boundings.php
+++ b/src/structs/boundings.php
@@ -19,6 +19,21 @@ class ezcGraphBoundings
$this->y0 = $y0;
$this->x1 = $x1;
$this->y1 = $y1;
+
+ // Switch values to ensure correct order
+ if ( $this->x0 > $this->x1 )
+ {
+ $tmp = $this->x0;
+ $this->x0 = $this->x1;
+ $this->x1 = $tmp;
+ }
+
+ if ( $this->y0 > $this->y1 )
+ {
+ $tmp = $this->y0;
+ $this->y0 = $this->y1;
+ $this->y1 = $tmp;
+ }
}
/**
OpenPOWER on IntegriCloud