projects
/
imager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e907e91
)
load Imager::Color::Float in NCF
author
Tony Cook
<tony@develop=help.com>
Sat, 23 Oct 2010 22:30:27 +0000
(22:30 +0000)
committer
Tony Cook
<tony@develop=help.com>
Sat, 23 Oct 2010 22:30:27 +0000
(22:30 +0000)
Imager.pm
patch
|
blob
|
blame
|
history
diff --git
a/Imager.pm
b/Imager.pm
index 0902b3cb2424ba7fa82dc1b8cd2aaca0d2f4f0f7..89a3a9a3b5fedcab3dfee2716d6265d4acf1d0c4 100644
(file)
--- a/
Imager.pm
+++ b/
Imager.pm
@@
-3738,7
+3738,10
@@
sub get_file_limits {
sub newcolor { Imager::Color->new(@_); }
sub newfont { Imager::Font->new(@_); }
-sub NCF { Imager::Color::Float->new(@_) }
+sub NCF {
+ require Imager::Color::Float;
+ return Imager::Color::Float->new(@_);
+}
*NC=*newcolour=*newcolor;
*NF=*newfont;