projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e2eeee
)
Formspecs: Fix missing trim() when checking for no_prepend[]
author
rubenwardy
<rw@rubenwardy.com>
Wed, 15 Aug 2018 19:06:09 +0000
(20:06 +0100)
committer
rubenwardy
<rw@rubenwardy.com>
Wed, 15 Aug 2018 19:06:09 +0000
(20:06 +0100)
src/gui/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/guiFormSpecMenu.cpp
b/src/gui/guiFormSpecMenu.cpp
index f39eb70abb67b2193b15b15fda01a13c5724f97e..948ee40305aeb0f3a9a1ac05352b9aac1f074093 100644
(file)
--- a/
src/gui/guiFormSpecMenu.cpp
+++ b/
src/gui/guiFormSpecMenu.cpp
@@
-2090,7
+2090,7
@@
void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
break;
std::vector<std::string> parts = split(elements[i], '[');
- if (
parts[0]
== "no_prepend")
+ if (
trim(parts[0])
== "no_prepend")
enable_prepends = false;
else
break;