Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Vector fill tool crash fix

manongjohne7b1cd660032
diff --git a/toonz/sources/tnztools/tooloptions.cpp b/toonz/sources/tnztools/tooloptions.cpp
index b6f058b15..e90552226 100644
--- a/toonz/sources/tnztools/tooloptions.cpp
+++ b/toonz/sources/tnztools/tooloptions.cpp
@@ -1663,7 +1663,7 @@ void FillToolOptionsBox::updateStatus() {
void FillToolOptionsBox::onColorModeChanged() {
bool enabled = m_colorMode->currentText() != QString("Lines");
m_selectiveMode->setEnabled(enabled);
- m_autopaintMode->setEnabled(enabled);
+ if(m_autopaintMode) m_autopaintMode->setEnabled(enabled);
if (m_fillDepthLabel && m_fillDepthField) {
m_fillDepthLabel->setEnabled(enabled);
m_fillDepthField->setEnabled(enabled);