[LON-CAPA-cvs] cvs: loncom /homework imageresponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 12 Aug 2004 06:00:40 -0000


albertel		Thu Aug 12 02:00:40 2004 EDT

  Modified files:              
    /loncom/homework	imageresponse.pm 
  Log:
  - BUG#3107, <imageresponse> <image>s weren't being capped to column width. 
  
  
  
Index: loncom/homework/imageresponse.pm
diff -u loncom/homework/imageresponse.pm:1.54 loncom/homework/imageresponse.pm:1.55
--- loncom/homework/imageresponse.pm:1.54	Fri Jul  2 04:11:10 2004
+++ loncom/homework/imageresponse.pm	Thu Aug 12 02:00:39 2004
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # image click response style
 #
-# $Id: imageresponse.pm,v 1.54 2004/07/02 08:11:10 albertel Exp $
+# $Id: imageresponse.pm,v 1.55 2004/08/12 06:00:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -500,6 +500,7 @@
 	} elsif ($width ne '') {
 	    $width_param = $width*$scaling;      
 	}
+	$width_param=&Apache::randomlabel::adjust_textwidth($width_param);
 	#where can we find the picture?
 	if (-e $newsrc) {
 	    if ($path) {