ide: Issue with raw property in layout fixed

git-svn-id: svn://ultimatepp.org/upp/trunk@7879 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-11-10 09:34:15 +00:00
parent ce3e9fc9c2
commit 0aa5255abf

View file

@ -81,16 +81,19 @@ String RawProperty::Save() const
{
String s = ~editor;
CParser p(s);
int level = 0;
while(!p.IsEof()) {
if(p.Char('('))
level++;
else
if(p.Char(')'))
level--;
else
p.SkipTerm();
try {
int level = 0;
while(!p.IsEof()) {
if(p.Char('('))
level++;
else
if(p.Char(')'))
level--;
else
p.SkipTerm();
}
}
catch(CParser::Error) {}
if(level < 0)
s = String('(', -level) + s;
else