mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
ce3e9fc9c2
commit
0aa5255abf
1 changed files with 12 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue