Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -476,6 +476,7 @@ |
477 | 477 | var old_width = zp_img.width; |
478 | 478 | var new_width = Math.round(zp_img.width*Math.pow(1.1,delta)); |
479 | 479 | var delta_w = new_width - old_width; |
| 480 | + if(delta_w==0) return; |
480 | 481 | var s = (delta_w>0)?1:-1; |
481 | 482 | |
482 | 483 | for(var dw=s; dw != delta_w; dw=dw+s){ |