Panics · P25 Generative: gone choices mark none, overruns peg; seed fields hold seeds through fits, undo and input methods
This commit is contained in:
1 parent
fb7ee42e3d
commit
68a98198b0
17 files changed
+451
-123
No files matched your search
@@ -38,12 +38,13 @@ impl AspectRatioPicker {
|
||||
selected: (u32, u32),
|
||||
) -> Self {
|
||||
let ratios: Vec<(u32, u32)> = ratios.into_iter().collect();
|
||||
assert!(
|
||||
ratios.contains(&selected),
|
||||
"ratio {}:{} is not among the ratios",
|
||||
selected.0,
|
||||
selected.1
|
||||
);
|
||||
if !ratios.contains(&selected) {
|
||||
log::error!(
|
||||
"aspect ratio: {}:{} is not among the ratios; none selected",
|
||||
selected.0,
|
||||
selected.1
|
||||
);
|
||||
}
|
||||
Self {
|
||||
id: id.into(),
|
||||
ratios,
|
||||
|
||||
Reference in new issue
Block a user