load Imager::Color::Float in NCF
authorTony Cook <tony@develop=help.com>
Sat, 23 Oct 2010 22:30:27 +0000 (22:30 +0000)
committerTony Cook <tony@develop=help.com>
Sat, 23 Oct 2010 22:30:27 +0000 (22:30 +0000)
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;