Skip to content
Browse files

BUGFIX: Fixed a bug when opening a file caused the program to crash

  • Loading branch information...
1 parent c1034a0 commit 2921cc3f1117edbca20524a6c162670541d25ec6 @Detegr committed Feb 9, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 editor.cpp
View
5 editor.cpp
@@ -317,9 +317,10 @@ void C_Editor::S_OpenFile(const QString& path)
ss << *it;
ss >> y;
ss.clear();
- if(it != strs.end())
+ if((it+1) != strs.end())
{
- if(++it->find('<')==0)
+ ++it;
+ if(it->find('<')==0)
{
data = QString(it->substr(8, std::string::npos).c_str());
} else it--;

0 comments on commit 2921cc3

Please sign in to comment.
Something went wrong with that request. Please try again.