From 0f0ae92650b5477193455712247ec037ab91613e Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 28 Jan 2021 18:20:50 +0100 Subject: Extension during mapping not correctly replaced. When searching whether the extension is already in the list of mapped extensions the input extension is used but when inserting the eventually corrected extension (extName) is used. In all cases the inserted extension contains a dot (`.`) , but for the input extension this is not necessarily the case. This can cause problems when searching for an extension as the search will always search wit a dot and thus find the first (is old) value. --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index ba4fae5..d387b02 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -5508,7 +5508,7 @@ bool updateLanguageMapping(const QCString &extension,const QCString &language) QCString extName = extension.lower(); if (extName.isEmpty()) return FALSE; if (extName.at(0)!='.') extName.prepend("."); - auto it = g_extLookup.find(extension.str()); + auto it = g_extLookup.find(extName.str()); if (it!=g_extLookup.end()) { g_extLookup.erase(it); // language was already register for this ext -- cgit v0.12