OpenToonz - An open-source full-featured 2D animation creation software
C
Fix FullColorEraser double-click-crash in Normal type or FreeHand type
Abel You576d3fa466f3
diff --git a/toonz/sources/tnztools/fullcolorerasertool.cpp b/toonz/sources/tnztools/fullcolorerasertool.cppindex cf3c2477c..46b63614a 100644--- a/toonz/sources/tnztools/fullcolorerasertool.cpp+++ b/toonz/sources/tnztools/fullcolorerasertool.cpp@@ -1146,7 +1146,9 @@ void FullColorEraserTool::leftButtonUp(const TPointD &pos,void FullColorEraserTool::leftButtonDoubleClick(const TPointD &pos,const TMouseEvent &e) {- if (m_eraseType.getValue() == RECTERASE) return;+ std::wstring type = m_eraseType.getValue();+ if (type == NORMALERASE || type == RECTERASE || type == FREEHANDERASE) return;+TRasterImageP ri(getImage(true));if (!ri) return;TStroke *stroke;