Add missing check if updated output has a positive resolution
This commit is contained in:
parent
77552b9426
commit
0749c9df34
1 changed files with 8 additions and 0 deletions
|
@ -360,6 +360,14 @@ logical size: {}x{}",
|
|||
);
|
||||
return;
|
||||
};
|
||||
|
||||
if !width.is_positive() || !height.is_positive() {
|
||||
error!(
|
||||
"Updated output '{}' has non-positive resolution: {} x {}, skipping",
|
||||
output_name, width, height
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
let integer_scale_factor = info.scale_factor;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue