From e93284d9ca399cdec0c14ad335e975b26c856520 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Nov 16 2018 07:57:04 +0000 Subject: fix toonz raster brush crash (#2381) --- diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.cpp b/toonz/sources/tnztools/toonzrasterbrushtool.cpp index 2425c38..589e040 100644 --- a/toonz/sources/tnztools/toonzrasterbrushtool.cpp +++ b/toonz/sources/tnztools/toonzrasterbrushtool.cpp @@ -2094,9 +2094,10 @@ ToonzRasterBrushToolNotifier::ToonzRasterBrushToolNotifier( bool ret; ret = connect(paletteHandle, SIGNAL(colorStyleChanged(bool)), this, SLOT(onColorStyleChanged())); - assert(ret); - ret = connect(paletteHandle, SIGNAL(colorStyleSwitched()), this, - SLOT(onColorStyleChanged())); + ret = ret && connect(paletteHandle, SIGNAL(colorStyleSwitched()), this, + SLOT(onColorStyleChanged())); + ret = ret && connect(paletteHandle, SIGNAL(paletteSwitched()), this, + SLOT(onColorStyleChanged())); assert(ret); } }