final review fixes: reject inf plot width, nearest-cell distance in double, tour wording
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
4fab14949c
commit
053edd521a
4 files changed
+5
-4
No files matched your search
@@ -4,6 +4,7 @@
|
||||
#include "layout_store.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
@@ -619,7 +620,7 @@ bool load_layout(const std::string& path, LayoutState& out) {
|
||||
}
|
||||
} else if (key == "width") {
|
||||
const double w = std::strtod(value.c_str(), nullptr);
|
||||
if (w > 0.0) st.rows.back().width = w;
|
||||
if (std::isfinite(w) && w > 0.0) st.rows.back().width = w;
|
||||
}
|
||||
} else if (section == Section::Math && !st.math.empty()) {
|
||||
MathChannel& m = st.math.back();
|
||||
|
||||
Reference in new issue
Block a user