1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00
This commit is contained in:
Lu Wang 2013-12-26 19:57:24 +08:00
parent 2c5ccccf59
commit 54e971bfc0
2 changed files with 3 additions and 5 deletions

View File

@ -50,7 +50,7 @@ void HTMLTextLine::append_offset(double width)
if((!offsets.empty()) && (offsets.back().start_idx == text.size()))
offsets.back().width += width;
else
offsets.emplace_back(text.size(), width, this->width);
offsets.emplace_back(text.size(), width);
this->width += width;
}
@ -477,7 +477,6 @@ void HTMLTextLine::optimize_aggressive(std::vector<HTMLTextLine*> & lines)
// letter space / word space are not taken into consideration (yet)
while(true)
{
lines.push_back(cur_line);

View File

@ -66,12 +66,11 @@ public:
};
struct Offset {
Offset(size_t size_idx, double width, double start_width)
:start_idx(size_idx),width(width),start_width(start_width)
Offset(size_t size_idx, double width)
:start_idx(size_idx),width(width)
{ }
size_t start_idx; // should put this Offset right before text[start_idx];
double width;
double start_width; // the width of the line before this offset
};
void append_unicodes(const Unicode * u, int l, double width);