diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-07-24 11:55:24 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-07-24 11:55:24 +0000 |
commit | ff849eb9f302289b044b9f98eadc02cca4ed2130 (patch) | |
tree | 23c0f6d4e2ab84451d22b43ce98d9f0cc120ccee /src/structs | |
parent | 49ded86c90d1bfa6cc0b780b1ad00544f9d198fd (diff) | |
download | zetacomponents-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.php | 15 |
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; + } } /** |