diff --git a/src/HTMLTextLine.cc b/src/HTMLTextLine.cc
index 5d229eb..8f94627 100644
--- a/src/HTMLTextLine.cc
+++ b/src/HTMLTextLine.cc
@@ -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 & lines)
// letter space / word space are not taken into consideration (yet)
while(true)
{
- lines.push_back(cur_line);
diff --git a/src/HTMLTextLine.h b/src/HTMLTextLine.h
index 8e9b72e..782b491 100644
--- a/src/HTMLTextLine.h
+++ b/src/HTMLTextLine.h
@@ -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);