--- loncom/xml/londefdef.pm 2005/08/07 16:53:07 1.284 +++ loncom/xml/londefdef.pm 2005/08/11 22:04:09 1.285 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.284 2005/08/07 16:53:07 albertel Exp $ +# $Id: londefdef.pm,v 1.285 2005/08/11 22:04:09 foxr Exp $ # # # Copyright Michigan State University Board of Trustees @@ -3965,6 +3965,13 @@ sub image_height { sub get_eps_image { my ($src)=@_; my $orig_src=&Apache::lonnet::filelocation($Apache::lonxml::pwd[-1], $src); + + # In order to prevent the substitution of the alt text, we need to + # be sure the orig_src file is on system now so: + + if (! -e $orig_src) { + &Apache::lonnet::repcopy($orig_src); # Failure is not completely fatal. + } &Apache::lonxml::debug("get_eps_image: Original image: $orig_src"); my ($spath, $sname, $sext) = fileparse($src, qr/\.(gif|png|jpg|jpeg)/i); $src=~s/\.(gif|png|jpg|jpeg)$/\.eps/i;