Fixed horizontal position of watermark text when using drop shadow
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index aae062e..e056654 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -1331,7 +1331,7 @@
// 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')
{