Skip to content

Commit

Permalink
Use the abs() value, in case this is a generated key image.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 21, 2014
1 parent abe0ab5 commit 4fbd0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansel/lib/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public function createView($view, Ansel_Style $style = null, $watermark = '')
if (empty($style)) {
$style = $GLOBALS['injector']
->getInstance('Ansel_Storage')
->getGallery($this->gallery)
->getGallery(abs($this->gallery))
->getStyle();
}

Expand Down

0 comments on commit 4fbd0b1

Please sign in to comment.