Changeset 62

Show
Ignore:
Timestamp:
03/05/07 06:29:52 (2 years ago)
Author:
renato
Message:

Avoiding problem with 1x1 images. Also, now unparseable codes are displayed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • latex/mod/latex/class.latexrender.php

    r34 r62  
    265265        } 
    266266 
     267                // avoiding problems with 1x1 images 
     268                if ($dim["x"] <= 1 && $dim["y"] <= 1){ 
     269                        return false; 
     270                } 
     271 
    267272        // copy temporary formula file to cahed formula directory 
    268273        $latex_hash = md5($latex_formula); 
  • latex/mod/latex/lib.php

    r34 r62  
    3737        } else { 
    3838            // unparseable or potentially dangerous latex formula 
    39             $text = substr_replace($text, "",$pos,strlen($tex_matches[0][$i])); 
     39            //$text = substr_replace($text, $tex_matches[1][$i],$pos,strlen($tex_matches[0][$i])); 
    4040        } 
    4141    }