mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix crash in app::tools::BaseInk::prepareForPointShape (fix #3338)
This commit is contained in:
parent
6ab1b2c653
commit
c902c563e3
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user