CtrlCore: Fixed workares issue in X11/GTK, various cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@7336 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-28 16:55:48 +00:00
parent f59fe47620
commit e2b5d44cc8
32 changed files with 87 additions and 56 deletions

View file

@ -146,7 +146,7 @@ void LayoutItem::ReadProperties(CParser& p, bool addunknown)
else {
String name = p.ReadId();
int q = FindProperty(name);
if(q < 0)
if(q < 0) {
if(addunknown) {
q = property.GetCount();
ItemProperty& new_prop = property.Add(new RawProperty);
@ -158,6 +158,7 @@ void LayoutItem::ReadProperties(CParser& p, bool addunknown)
ReadPropertyParam(p);
p.PassChar(')');
}
}
if(q >= 0) {
ItemProperty& ip = property[q];
ip.SetCharset(charset);