mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
make PDF build with VS2008
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user