summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authoromar <omma2289@bitbucket.org>2015-01-31 19:58:03 +0100
committeromar <omma2289@bitbucket.org>2015-01-31 19:58:03 +0100
commit9c855325189e7ec1ecf2f4666280af038b6cb00e (patch)
tree7e4817f62a4b21a7d6bd9ca4536243c90bc6333b /system
parent0779e99eeb12cb137eed77cf580add374afa71a5 (diff)
Fixed horizontal position of watermark text when using drop shadow
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Image_lib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index aae062e47..e056654bb 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -1331,7 +1331,7 @@ class CI_Image_lib {
// Set horizontal alignment
if ($this->wm_hor_alignment === 'R')
{
- $x_axis += $this->orig_width - ($fontwidth * strlen($this->wm_text));
+ $x_axis += $this->orig_width - ($fontwidth * strlen($this->wm_text)) - $this->wm_shadow_distance;
}
elseif ($this->wm_hor_alignment === 'C')
{