Fixed filling of invisible chars. - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
 (HTM) git clone https://git.drkhsh.at/icy_draw.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1bfacdc151d7d015db76575ea988c3be48691e71
 (DIR) parent b72963c17b064854d9acd6e24efcd5c9327b3b07
 (HTM) Author: Mike Krüger <mkrueger@posteo.de>
       Date:   Mon, 18 Sep 2023 17:28:15 +0200
       
       Fixed filling of invisible chars.
       
       Diffstat:
         M src/model/tools/fill_imp.rs         |       3 +--
         M src/ui/editor/charfont/mod.rs       |       2 +-
       
       2 files changed, 2 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/src/model/tools/fill_imp.rs b/src/model/tools/fill_imp.rs
       @@ -135,7 +135,6 @@ impl FillOperation {
                            }
                        }
                    }
       -
                    if self.use_fore {
                        repl_ch
                            .attribute
       @@ -159,6 +158,7 @@ impl FillOperation {
                            .get_attribute()
                            .get_font_page(),
                    );
       +            repl_ch.attribute.attr &= !icy_engine::attribute::INVISIBLE;
                    editor.set_char(pos, repl_ch);
                }
        
       @@ -259,7 +259,6 @@ impl Tool for FillTool {
                        .get_cur_layer()
                        .unwrap()
                        .get_char(pos);
       -
                    if self.use_back || self.use_fore || matches!(self.fill_type, FillType::Character) {
                        let _undo =
                            editor.begin_atomic_undo(fl!(crate::LANGUAGE_LOADER, "undo-bucket-fill"));
 (DIR) diff --git a/src/ui/editor/charfont/mod.rs b/src/ui/editor/charfont/mod.rs
       @@ -1,7 +1,7 @@
        use std::{path::Path, sync::Arc};
        
        use eframe::{
       -    egui::{self, Button, RichText, ScrollArea, SidePanel, TextEdit, TopBottomPanel},
       +    egui::{self, Button, ScrollArea, SidePanel, TextEdit, TopBottomPanel},
            epaint::{mutex::Mutex, Vec2},
        };
        use egui_extras::RetainedImage;