OpenToonz - An open-source full-featured 2D animation creation software
C
fix crash on clicking xsheet (#445)
shun-iwasawa760cdf1a859c
diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cppindex 1d499c511..8700d1de4 100644--- a/toonz/sources/toonz/xshcellviewer.cpp+++ b/toonz/sources/toonz/xshcellviewer.cpp@@ -797,6 +797,9 @@ void CellArea::drawCells(QPainter &p, const QRect toBeUpdated)}// smart tab+ // initialize the rectangles first+ m_levelExtenderRect = QRect();+ m_upperLevelExtenderRect = QRect();int smartTabPosOffset = (Preferences::instance()->isShowKeyframesOnXsheetCellAreaEnabled()) ? 31 : 20;if (!cellSelection->isEmpty() && !m_viewer->areSoundCellsSelected()) {m_levelExtenderRect = QRect(xS1 - smartTabPosOffset, yS1 + 1, 19, 8);