Skip to content

Commit afa6ade

Browse files
committed
Merge branch 'master' into 1.0
2 parents 74f5641 + af6d0e1 commit afa6ade

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Controller/UploadController.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@ public function cropImageAction(Request $request
111111
$tarW = (int) round($config['cropConfig']['minWidth']);
112112
$tarH = (int) round($config['cropConfig']['minHeight']);
113113

114+
//Issue 36
115+
if($x < 0)
116+
{
117+
$w = $w + $x;
118+
$x = 0;
119+
}
120+
121+
if($y < 0)
122+
{
123+
$h = $h + $y;
124+
$y = 0;
125+
}
126+
//End issue 36
127+
114128
$forceResize = $config['cropConfig']['forceResize'];
115129
// $disableCrop = $config['cropConfig']['disableCrop'];
116130

0 commit comments

Comments
 (0)