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

Henry Castro hcastro at collabora.com
Thu Jan 7 08:13:58 PST 2016


 loolwsd/LOOLWSD.hpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 49fbf1126bfbd7e3f32c8475c3f226d9fd291563
Author: Henry Castro <hcastro at collabora.com>
Date:   Thu Jan 7 12:13:00 2016 -0400

    loolwsd: fix search document.

diff --git a/loolwsd/LOOLWSD.hpp b/loolwsd/LOOLWSD.hpp
index 57397ed..3e990eb 100644
--- a/loolwsd/LOOLWSD.hpp
+++ b/loolwsd/LOOLWSD.hpp
@@ -51,7 +51,7 @@ public:
         std::unique_lock<std::mutex> lock(DocumentsMutex);
 
         // Find the document if already open.
-        auto it = UriToDocumentMap.lower_bound(publicFilePath);
+        auto it = UriToDocumentMap.find(publicFilePath);
         if (it != UriToDocumentMap.end())
         {
             Log::info("Document [" + it->first + "] found.");


More information about the Libreoffice-commits mailing list