Skip to content

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

C

Style Selection .isEmpty logic fix

justburner86944b9256ac
diff --git a/toonz/sources/toonzqt/styleselection.cpp b/toonz/sources/toonzqt/styleselection.cpp
index 1e55ea900..cf390247e 100644
--- a/toonz/sources/toonzqt/styleselection.cpp
+++ b/toonz/sources/toonzqt/styleselection.cpp
@@ -568,7 +568,7 @@ void TStyleSelection::selectNone() {
//-------------------------------------------------------------------
bool TStyleSelection::isEmpty() const {
- return m_pageIndex < 0 && m_styleIndicesInPage.empty();
+ return m_pageIndex < 0 || m_styleIndicesInPage.empty();
}
//-------------------------------------------------------------------