1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

fixed a tm recognition bug

This commit is contained in:
Lu Wang 2012-08-16 14:24:38 +08:00
parent 2906e89fec
commit 5882a5e288

View File

@ -98,9 +98,11 @@ void HTMLRenderer::export_transform_matrix (long long tm_id, const double * tm)
{ {
allcss_fout << format(".t%|1$x|{") % tm_id; allcss_fout << format(".t%|1$x|{") % tm_id;
// always ignore tm[4] and tm[5] because
// we have already shifted the origin
// TODO: recognize common matices // TODO: recognize common matices
if(_tm_equal(tm, id_matrix)) if(_tm_equal(tm, id_matrix, 4))
{ {
// no need to output anything // no need to output anything
} }
@ -115,7 +117,6 @@ void HTMLRenderer::export_transform_matrix (long long tm_id, const double * tm)
<< -tm[2] << ',' << -tm[2] << ','
<< tm[3] << ','; << tm[3] << ',';
// we have already shifted the origin
allcss_fout << "0,0);"; allcss_fout << "0,0);";
/* /*
if(prefix == "-moz-") if(prefix == "-moz-")