Permalink
Browse files

fixed alignment

  • Loading branch information...
splitbrain committed Jan 19, 2012
1 parent 4bd12fd commit 565db800f522e19a693f3dc9bd9e9b4bc801f5d9
Showing with 2 additions and 2 deletions.
  1. +2 −2 phpmathpublisher/mathpublisher.php
@@ -73,9 +73,9 @@ protected function detectimg($n){
public function renderimage($text, $size, $output){
$formula = new PMP_expression_math($this->tableau_expression(trim($text)));
$formula->dessine($size);
- $alignment = imagesy($formula->image) + $formula->base_verticale + 3;
+ $alignment = 1000 - imagesy($formula->image) + $formula->base_verticale + 3;
imagepng($formula->image, $output);
- return $alignment;
+ return $alignment - 1000;
}
/**

0 comments on commit 565db80

Please sign in to comment.