Commit 8587fe0a authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

scribo/table/internal/align_lines.hh: Update use of math::round.

parent 9798a844
2013-03-08 Guillaume Lazzara <z@lrde.epita.fr>
* scribo/table/internal/align_lines.hh: Update use of math::round.
2013-03-08 Guillaume Lazzara <z@lrde.epita.fr>
* doc/Doxyfile.in: Make use of bibliography and .css files.
......
// Copyright (C) 2009, 2010, 2011 EPITA Research and Development
// Copyright (C) 2009, 2010, 2011, 2013 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
......@@ -157,7 +157,6 @@ namespace scribo
// be done for nothing...
aligned_lines = duplicate(lines);
mln::util::array<int> newlines;
math::round<int> round;
while (max_nelts > 0)
{
for_all_elements(i, rlines)
......@@ -173,11 +172,11 @@ namespace scribo
for_all_elements(j, lines[i])
if (box2line[rlines[i][j]] == -1)
{
lines(rlines[i][j]).bbox().pmin()[dim] = round(mean.to_result());
lines(rlines[i][j]).bbox().pmax()[dim] = round(mean.to_result());
box2line[rlines[i][j]] = round(mean.to_result());
lines(rlines[i][j]).bbox().pmin()[dim] = math::round<int>(mean.to_result());
lines(rlines[i][j]).bbox().pmax()[dim] = math::round<int>(mean.to_result());
box2line[rlines[i][j]] = math::round<int>(mean.to_result());
}
newlines.append(round(mean.to_result()));
newlines.append(math::round<int>(mean.to_result()));
}
}
--max_nelts;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment