Skip to content

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

C

fix crash with command line arguments (#2155)

shun-iwasawa5d6c4b47eb42
diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cpp
index 6b87580a1..1c0bf6aa1 100644
--- a/toonz/sources/toonz/main.cpp
+++ b/toonz/sources/toonz/main.cpp
@@ -310,6 +310,8 @@ int main(int argc, char *argv[]) {
argumentPathValues.insert(q_itr->first,
q_itr->second->getValue().getQString());
}
+
+ argc = 1;
}
// Enables high-DPI scaling. This attribute must be set before QApplication is