loolwsd/LOOLWSD.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit cb772746d8b4a14115ef172970dcb5dba36936b4 Author: Ashod Nakashian <[email protected]> Date: Sat Jan 9 12:02:11 2016 -0500 loolwsd: multiple documents load correctly now Change-Id: I86adda24d5ea576aa17829f27b78cb02d0350a4b Reviewed-on: https://gerrit.libreoffice.org/21323 Reviewed-by: Ashod Nakashian <[email protected]> Tested-by: Ashod Nakashian <[email protected]> diff --git a/loolwsd/LOOLWSD.hpp b/loolwsd/LOOLWSD.hpp index 3e990eb..4108775 100644 --- a/loolwsd/LOOLWSD.hpp +++ b/loolwsd/LOOLWSD.hpp @@ -51,8 +51,8 @@ public: std::unique_lock<std::mutex> lock(DocumentsMutex); // Find the document if already open. - auto it = UriToDocumentMap.find(publicFilePath); - if (it != UriToDocumentMap.end()) + auto it = UriToDocumentMap.lower_bound(publicFilePath); + if (it != UriToDocumentMap.end() && it->first == publicFilePath) { Log::info("Document [" + it->first + "] found."); return it->second; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
