From 8dae1ccf84340b020e52ea88f4b0cdde86592f34 Mon Sep 17 00:00:00 2001 From: abijah Date: Fri, 29 May 2009 06:57:22 +0000 Subject: [PATCH] Added a higher preference for horizontal unit names git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@37 97e9348a-65ac-dc4b-aefc-98561f571b83 --- views/maps/image.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/maps/image.ctp b/views/maps/image.ctp index 0a68c25..9d789e5 100644 --- a/views/maps/image.ctp +++ b/views/maps/image.ctp @@ -68,7 +68,7 @@ foreach ($info['units'] AS $unit) { // If the unit is wide enough, run the text horizontal, // otherwise, we'll have to run it vertical. - if ($unit['width'] > 40 || ($unit['width'] >= $unit['depth'])) { + if ($unit['width'] > 20 || ($unit['width'] >= $unit['depth'])) { imagestring($image, $unit['width']/25, $unit['left']+3, $unit['top']+3, $unit['name'],