From 7069d9abb8a5a7ae51cd9fc75637a672875ed82c Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sat, 25 Apr 2020 19:35:06 +0800 Subject: [PATCH] App: fix lost of Link when renaming linked file --- src/App/PropertyLinks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/PropertyLinks.cpp b/src/App/PropertyLinks.cpp index b936c9665ea8..dca519f01478 100644 --- a/src/App/PropertyLinks.cpp +++ b/src/App/PropertyLinks.cpp @@ -2670,7 +2670,7 @@ class App::DocInfo : if(path.isEmpty() || path!=docPath) { FC_LOG("document '" << doc.getName() << "' path changed"); auto me = shared_from_this(); - auto ret = _DocInfoMap.insert(std::make_pair(path,me)); + auto ret = _DocInfoMap.insert(std::make_pair(docPath,me)); if(!ret.second) { // is that even possible? FC_WARN("document '" << doc.getName() << "' path exists, detach");