Skip to content

Commit

Permalink
load Imager::Color::Float in NCF
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Cook committed Oct 23, 2010
1 parent e907e91 commit 4697b0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Imager.pm
Expand Up @@ -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;
Expand Down

0 comments on commit 4697b0b

Please sign in to comment.