[Libreoffice-commits] online.git: loolwsd/LOOLWSD.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sun Jan 10 20:05:54 PST 2016


 loolwsd/LOOLWSD.hpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cb772746d8b4a14115ef172970dcb5dba36936b4
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
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 <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

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;


More information about the Libreoffice-commits mailing list