Fixed issue #1238 (Macro IDE: breakpoints not effective on Windows)

This commit is contained in:
klayoutmatthias 2022-12-31 18:51:08 +01:00
parent e8cf51df1c
commit b213479e07
2 changed files with 2 additions and 2 deletions

View File

@ -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 ();
}

View File

@ -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;
}
}