gui: fix segfault when providing --sdc (#1682)

This commit is contained in:
mrcmry 2026-04-01 11:09:00 +02:00 committed by GitHub
parent 77ccf518d5
commit 4f5db1f7b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ int CommandHandler::executeMain(std::unique_ptr<Context> ctx)
if (vm.count("sdc")) {
std::string sdc_filename = vm["sdc"].as<std::string>();
std::ifstream sdc_stream(sdc_filename);
ctx->read_sdc(sdc_stream);
w.getContext()->read_sdc(sdc_stream);
}
customAfterLoad(w.getContext());