From d92c5a2c2512626cbd20bc4f724491185564ed1b Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Thu, 10 Oct 2024 17:21:18 +0200 Subject: [PATCH] trim blueprints before saving --- src/editor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor.rs b/src/editor.rs index 68bc1db..b13794b 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -277,6 +277,7 @@ impl Editor { } } } + board.trim_size(0); let mut blueprint = Blueprint::new(&board, self.blueprints.len()); if !self.new_blueprint_name.is_empty() { blueprint.name = self.new_blueprint_name.clone();