From 563e762ddebf4f55a3300c79a8bf6e161ca6e146 Mon Sep 17 00:00:00 2001 From: Bruno Date: Sat, 7 Aug 2021 20:22:07 +0200 Subject: [PATCH] Store mask after fill --- TextureView.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TextureView.cpp b/TextureView.cpp index 9a2126b..1065695 100644 --- a/TextureView.cpp +++ b/TextureView.cpp @@ -727,9 +727,11 @@ void TextureView::draw() { FrameBufferImage *img = new FrameBufferImage(maskdialog.path()); if (edit_source_->maskbuffer_->fill( img )) { + // apply mask filled + edit_source_->storeMask(); + // store history std::ostringstream oss; - oss << edit_source_->name(); - oss << ": Mask fill with " << maskdialog.path(); + oss << edit_source_->name() << ": Mask fill with " << maskdialog.path(); Action::manager().store(oss.str()); } }