make PDF build with VS2008

This commit is contained in:
Günter Obiltschnig
2018-03-07 10:14:49 +01:00
parent 4f562c0e6b
commit 4a6a1a980b
52 changed files with 1025 additions and 769 deletions

View File

@@ -67,12 +67,14 @@ void Table::draw(Page& page, float x, float y, float width, float height)
int rows = _cells.size();
int cols = _cells[0].size();
int r = 0;
for (auto& row : _cells)
for (Cells::iterator it = _cells.begin(); it != _cells.end(); ++it)
{
TableRow& row(*it);
float h = height / rows;
int c = 0;
for (auto& cell : row)
for (TableRow::iterator itr = row.begin(); itr != row.end(); ++itr)
{
Cell& cell(*itr);
float w = width / cols;
cell.draw(page, x + (w * c), y - (h * r), w, h);
++c;