mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-12-17 23:55:12 +02:00
persistent: fix selection geometry validation
This commit is contained in:
@@ -62,7 +62,7 @@ void dp_persistent_load(struct dp_state *state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (x < 0 || y < 0 || x + width > selection_output->transformed_width ||
|
if (x < 0 || y < 0 || x + width > selection_output->transformed_width ||
|
||||||
y + height >= selection_output->transformed_height) {
|
y + height > selection_output->transformed_height) {
|
||||||
dp_log_error("Persistent state: invalid selection geometry", name);
|
dp_log_error("Persistent state: invalid selection geometry", name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user