r51337 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51336‎ | r51337 | r51338 >
Date:12:07, 2 June 2009
Author:thomasv
Status:ok
Tags:
Comment:
minor:test
Modified paths:
  • /trunk/extensions/ProofreadPage/proofread.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/proofread.js
@@ -476,6 +476,7 @@
477477 var old_width = zp_img.width;
478478 var new_width = Math.round(zp_img.width*Math.pow(1.1,delta));
479479 var delta_w = new_width - old_width;
 480+ if(delta_w==0) return;
480481 var s = (delta_w>0)?1:-1;
481482
482483 for(var dw=s; dw != delta_w; dw=dw+s){

Status & tagging log