projects
/
imager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3f71a5
)
fix error handling in the bounding_box() wrapper method
author
Tony Cook
<tony@develop-help.com>
Fri, 22 Feb 2013 00:29:07 +0000
(11:29 +1100)
committer
Tony Cook
<tony@develop-help.com>
Fri, 22 Feb 2013 00:29:07 +0000
(11:29 +1100)
lib/Imager/Font.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Imager/Font.pm
b/lib/Imager/Font.pm
index 3600f4099e152aafd7cdffbb21e9623ccee1553f..7dd08d3544ceed205ebc3e20ff480756de895010 100644
(file)
--- a/
lib/Imager/Font.pm
+++ b/
lib/Imager/Font.pm
@@
-4,7
+4,7
@@
use Imager::Color;
use strict;
use vars qw($VERSION);
-$VERSION = "1.03
5
";
+$VERSION = "1.03
6
";
# the aim here is that we can:
# - add file based types in one place: here
@@
-249,7
+249,8
@@
sub bounding_box {
$input{sizew} = _first($input{sizew}, $self->{sizew}, 0);
$input{utf8} = _first($input{utf8}, $self->{utf8}, 0);
- my @box = $self->_bounding_box(%input);
+ my @box = $self->_bounding_box(%input)
+ or return;
if (wantarray) {
if(@box && exists $input{'x'} and exists $input{'y'}) {