Skip to content

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

C

use strcmp

konero5f88e21cb1f2
diff --git a/toonz/sources/toonzqt/menubarcommand.cpp b/toonz/sources/toonzqt/menubarcommand.cpp
index e39dc4550..28da3fc99 100644
--- a/toonz/sources/toonzqt/menubarcommand.cpp
+++ b/toonz/sources/toonzqt/menubarcommand.cpp
@@ -399,7 +399,7 @@ void CommandManager::enlargeIcon(CommandId id, const QSize dstSize) {
if (!action) return;
const char *iconSVGName = getIconSVGName(id);
- if (iconSVGName == "") return;
+ if (strcmp(iconSVGName, "") == 0) return;
QIcon icon = action->icon();