Fix crash in app::tools::BaseInk::prepareForPointShape (fix #3338)

This commit is contained in:
Martín Capello 2023-05-15 13:58:48 -03:00 committed by David Capello
parent 6ab1b2c653
commit c902c563e3
2 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,11 @@ public:
virtual void prepareUForPointShapeSlicedScanline(ToolLoop* loop, bool leftSlice, int x1) { }
};
class NoopInkProcessing : public BaseInkProcessing {
public:
void processScanline(int x1, int y, int x2, ToolLoop* loop) override { }
};
typedef std::unique_ptr<BaseInkProcessing> InkProcessingPtr;
namespace {

View File

@ -61,7 +61,7 @@ protected:
}
private:
InkProcessingPtr m_proc;
InkProcessingPtr m_proc = std::make_unique<NoopInkProcessing>();
};
// Ink used for tools which paint with primary/secondary