small fix for padding
This commit is contained in:
parent
9d79f2dc27
commit
a8cdc4b241
2 changed files with 2 additions and 4 deletions
|
@ -35,15 +35,13 @@ void Wertetabelle::Print()
|
|||
string Wertetabelle::makeHeader()
|
||||
{
|
||||
bool setPad = padding.size() == 0;
|
||||
if (setPad)
|
||||
padding.resize(dimension);
|
||||
|
||||
string row2 = "|";
|
||||
for (vector<string>::iterator v = variables->begin(); v < variables->end(); v++)
|
||||
{
|
||||
row2 += " " + *v;
|
||||
if (setPad)
|
||||
padding.push_back(((*v).size()-1) / 2.0f);
|
||||
padding.push_back((v->size()-1) / 2.0f);
|
||||
}
|
||||
|
||||
row2 += " | y |";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Variables: a, b, c, d
|
||||
Variables: a, bar, char, d
|
||||
Terms:
|
||||
"0010">1
|
||||
7>1
|
||||
|
|
Loading…
Reference in a new issue