don't check for 0 continuous keys when printing GaussianMixtureFactor as it is possible to have non-zero discrete keys

release/4.3a0
Varun Agrawal 2024-04-03 16:15:21 +05:30
parent bd241f61ec
commit 8dd2bed6c1
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ void GaussianMixtureFactor::print(const std::string &s,
[&](const sharedFactor &gf) -> std::string {
RedirectCout rd;
std::cout << ":\n";
if (gf && !gf->empty()) {
if (gf) {
gf->print("", formatter);
return rd.str();
} else {