mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix GuiInfo dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26411 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b1475b461a
commit
d46f34a4ee
@ -150,9 +150,7 @@ void InsetInfo::write(ostream & os) const
|
|||||||
bool InsetInfo::validate(docstring const & arg) const
|
bool InsetInfo::validate(docstring const & arg) const
|
||||||
{
|
{
|
||||||
string type;
|
string type;
|
||||||
string name;
|
string const name = trim(split(to_utf8(arg), type, ' '));
|
||||||
|
|
||||||
name = trim(split(to_utf8(arg), type, ' '));
|
|
||||||
switch (nameTranslator().find(type)) {
|
switch (nameTranslator().find(type)) {
|
||||||
case UNKNOWN_INFO:
|
case UNKNOWN_INFO:
|
||||||
return false;
|
return false;
|
||||||
@ -172,7 +170,7 @@ bool InsetInfo::validate(docstring const & arg) const
|
|||||||
case TEXTCLASS_INFO:
|
case TEXTCLASS_INFO:
|
||||||
return true;
|
return true;
|
||||||
case BUFFER_INFO:
|
case BUFFER_INFO:
|
||||||
return name_ == "name" || name_ == "path" || name_ == "class";
|
return name == "name" || name == "path" || name == "class";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user