URI: 
       Fixes custom brush bug. - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
  HTML git clone https://git.drkhsh.at/icy_draw.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 5e081d6b5c05e4f026b7d2da6efb85e483859ce8
   DIR parent 44efe3a9a923fe5a4c1ea1fca3d467fb4d3bc533
  HTML Author: Mike Krüger <mkrueger@posteo.de>
       Date:   Sat, 21 Oct 2023 22:26:43 +0200
       
       Fixes custom brush bug.
       
       Fixes #54
       
       Diffstat:
         M src/model/tools/brush_imp.rs        |       3 +++
         M src/ui/main_window.rs               |       2 +-
       
       2 files changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/src/model/tools/brush_imp.rs b/src/model/tools/brush_imp.rs
       @@ -172,6 +172,9 @@ impl Tool for BrushTool {
            }
        
            fn handle_no_hover(&mut self, editor: &mut AnsiEditor) {
       +        if matches!(self.brush_mode, BrushMode::Custom) {
       +            editor.clear_overlay_layer();
       +        }
                let lock = &mut editor.buffer_view.lock();
                let get_edit_state_mut = lock.get_edit_state_mut();
                if get_edit_state_mut.get_tool_overlay_mask_mut().is_empty() {
   DIR diff --git a/src/ui/main_window.rs b/src/ui/main_window.rs
       @@ -54,7 +54,7 @@ pub struct MainWindow<'a> {
        
        pub const PASTE_TOOL: usize = 0;
        pub const FIRST_TOOL: usize = 1;
       -pub const BRUSH_TOOL: usize = 3;
       +pub const BRUSH_TOOL: usize = 4;
        pub const PIPETTE_TOOL: usize = 6;
        
        impl<'a> MainWindow<'a> {