mirror of https://github.com/KLayout/klayout.git
Merge remote-tracking branch 'origin/issue-1238'
This commit is contained in:
commit
a3c9b6bc4a
|
|
@ -3079,7 +3079,7 @@ size_t
|
|||
MacroEditorDialog::id_for_path (gsi::Interpreter *, const std::string &path)
|
||||
{
|
||||
for (std::map <lym::Macro *, MacroEditorPage *>::const_iterator m = m_tab_widgets.begin (); m != m_tab_widgets.end (); ++m) {
|
||||
if (m->first->path () == path) {
|
||||
if (tl::is_same_file(m->first->path (), path)) {
|
||||
m_file_to_widget.push_back (*m);
|
||||
return m_file_to_widget.size ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -733,7 +733,7 @@ void MacroCollection::rename_macro (Macro *macro, const std::string &new_name)
|
|||
lym::Macro *MacroCollection::find_macro (const std::string &path)
|
||||
{
|
||||
for (iterator m = begin (); m != end (); ++m) {
|
||||
if (m->second->path () == path) {
|
||||
if (tl::is_same_file (m->second->path (), path)) {
|
||||
return m->second;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue