Skip to content

Commit 00e4d94

Browse files
committed
handle no tempalte file found
1 parent 5bdd4af commit 00e4d94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui/macrobuilder2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,8 @@ void macrobuilder2_main_template_list_t::on_create(sys::state& state) noexcept {
640640
for(int32_t i = -1; i < int32_t(num_templates); ++i) {
641641
values.push_back(i);
642642
}
643+
} else {
644+
values.push_back(-1);
643645
}
644646
// END
645647
}

0 commit comments

Comments
 (0)