mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
*ide: Fixed issue with importing .png file into icondesigner, filename starting with digit (RM #241)
git-svn-id: svn://ultimatepp.org/upp/trunk@4481 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5967e444ef
commit
b278075c03
2 changed files with 15 additions and 5 deletions
|
|
@ -199,12 +199,19 @@ bool LoadIml(const String& data, Array<ImlImage>& img, int& format)
|
|||
while(p.Id("IMAGE_ID")) {
|
||||
p.PassChar('(');
|
||||
String n;
|
||||
if(p.IsId())
|
||||
if(p.IsId()) {
|
||||
n = p.ReadId();
|
||||
if(n.StartsWith("im__", 4))
|
||||
n = Null;
|
||||
if(n.StartsWith("im__", 4))
|
||||
n = Null;
|
||||
p.PassChar(')');
|
||||
}
|
||||
else
|
||||
while(!p.IsEof()) {
|
||||
if(p.Char(')'))
|
||||
break;
|
||||
p.SkipTerm();
|
||||
}
|
||||
name.Add(n);
|
||||
p.PassChar(')');
|
||||
bool e = false;
|
||||
if(p.Id("IMAGE_META")) {
|
||||
p.PassChar('(');
|
||||
|
|
|
|||
Loading…
Reference in a new issue