editing: Handle errors

This commit is contained in:
Sophie Herold 2024-12-18 13:36:20 +01:00
parent 5b51237203
commit 8345640757
5 changed files with 57 additions and 30 deletions

View file

@ -131,7 +131,9 @@ impl WidgetImpl for imp::LpImage {
let tmp_snapshot = gtk::Snapshot::new();
frame_buffer.add_to_snapshot(&tmp_snapshot, applicable_zoom, &render_options);
if let Some(node) = tmp_snapshot.to_node() {
self.apply_operations(node, snapshot);
if let Err(err) = self.apply_operations(node, snapshot) {
log::error!("Failed to apply operations to node: {err}");
}
} else {
log::error!("Render node is empty");
}