fix dot crashing in multiple places
This commit is contained in:
+8
-2
@@ -377,7 +377,10 @@ void print_token_vector(const std::vector<Expression::Token>& tv)
|
||||
std::cout << "(" << *tv[i].to_str() << ") ";
|
||||
}
|
||||
|
||||
std::cout << "(" << *tv[i].to_str() << ")\n";
|
||||
if (tv.size())
|
||||
{
|
||||
std::cout << "(" << *tv[i].to_str() << ")\n";
|
||||
}
|
||||
}
|
||||
|
||||
void print_math_vector(const std::vector<Expression::Token>& tv)
|
||||
@@ -388,7 +391,10 @@ void print_math_vector(const std::vector<Expression::Token>& tv)
|
||||
std::cout << *tv[i].to_math_str(); //<< " ";
|
||||
}
|
||||
|
||||
std::cout << *tv[i].to_math_str() << "\n";
|
||||
if (tv.size())
|
||||
{
|
||||
std::cout << *tv[i].to_math_str() << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user