Skip to content

Commit

Permalink
Merge pull request #1564 from KLayout/issue-1563
Browse files Browse the repository at this point in the history
Issue 1563
  • Loading branch information
klayoutmatthias authored Dec 8, 2023
2 parents 3550d81 + 8ec3805 commit f757a0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy-win-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ echo "Making .zip file $zipname.zip .."

rm -rf $zipname $zipname.zip
mkdir $zipname
cp -Rv *.dll .*-paths.txt db_plugins lay_plugins $plugins lib $zipname | sed -u 's/.*/echo -n ./' | sh
cp -Rv *.dll cert.pem .*-paths.txt db_plugins lay_plugins $plugins lib $zipname | sed -u 's/.*/echo -n ./' | sh
cp klayout.exe $zipname/klayout_app.exe
cp klayout.exe $zipname/klayout_vo_app.exe
echo ""
Expand Down
9 changes: 9 additions & 0 deletions src/lay/lay/layMacroController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ MacroController::add_macro_category (const std::string &name, const std::string
cat.name = name;
cat.description = description;
cat.folders = folders;

// replace an existing category or add to back
for (auto c = m_macro_categories.begin (); c != m_macro_categories.end (); ++c) {
if (c->name == name) {
*c = cat;
return;
}
}

m_macro_categories.push_back (cat);
}

Expand Down

0 comments on commit f757a0a

Please sign in to comment.