Skip to content

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

C

resolve timeline warning

shun_iwasawa185f17a9b9f5
diff --git a/toonz/sources/toonz/xshcolumnviewer.cpp b/toonz/sources/toonz/xshcolumnviewer.cpp
index a7a89eeb9..a35845f8e 100644
--- a/toonz/sources/toonz/xshcolumnviewer.cpp
+++ b/toonz/sources/toonz/xshcolumnviewer.cpp
@@ -1503,6 +1503,7 @@ QPixmap ColumnArea::getColumnIcon(int columnIndex) {
QPixmap icon =
IconGenerator::instance()->getIcon(xl, cell.m_frameId, false, onDemand);
QRect thumbnailImageRect = o->rect(PredefinedRect::THUMBNAIL);
+ if (thumbnailImageRect.isEmpty()) return QPixmap();
return scalePixmapKeepingAspectRatio(icon, thumbnailImageRect.size());
}
}