mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Core: XmlNode::Remove, plugin/zip: Fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@6802 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b9fc973f42
commit
9c42a45865
7 changed files with 31 additions and 14 deletions
|
|
@ -39,8 +39,8 @@ void XmlView::Load(const char *filename)
|
|||
int64 l = GetFileLength(filename);
|
||||
if(l < 0 || l > 16000000)
|
||||
return;
|
||||
String txt = LoadFile(filename);
|
||||
XmlParser p(txt);
|
||||
FileIn in(filename);
|
||||
XmlParser p(in);
|
||||
xml.Clear();
|
||||
try {
|
||||
while(!p.IsEof())
|
||||
|
|
@ -49,7 +49,7 @@ void XmlView::Load(const char *filename)
|
|||
catch(XmlError e) {
|
||||
error = "XML parsing error: " + e;
|
||||
view.Show();
|
||||
view <<= txt;
|
||||
view <<= LoadFile(filename);
|
||||
view.SetCursor(view.GetPos(p.GetLine() - 1, p.GetColumn() - 1));
|
||||
view.SetFocus();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue