dictionary::changeKeyword: Convert newKeyword to word before updating the iterator name
This change allows non-pattern keywords to be changed into pattern keywords without generating a stripInvalid error.
This commit is contained in:
@ -1279,7 +1279,7 @@ bool Foam::dictionary::changeKeyword
|
||||
|
||||
// Change name and HashTable, but leave DL-List untouched
|
||||
iter()->keyword() = newKeyword;
|
||||
iter()->name() = name() + '/' + newKeyword;
|
||||
iter()->name() = name() + '/' + string::validate<word>(newKeyword);
|
||||
hashedEntries_.erase(oldKeyword);
|
||||
hashedEntries_.insert(newKeyword, iter());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user