Update of /cvsroot/wxdevcenter/wxDevCenter/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1633/src
Modified Files:
Plugin.cpp
Log Message:
Prevent assert if description file is not found on directory.
Index: Plugin.cpp
===================================================================
RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Plugin.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Plugin.cpp 11 Aug 2005 11:02:47 -0000 1.6
--- Plugin.cpp 11 Aug 2005 16:19:25 -0000 1.7
***************
*** 656,661 ****
m_bOk(false)
{
! if(m_Doc.Load(strPath))
! Parse();
}
--- 656,662 ----
m_bOk(false)
{
! if(wxFile::Exists(strPath))
! if(m_Doc.Load(strPath))
! Parse();
}
***************
*** 752,757 ****
m_bOk(false)
{
! if(m_Doc.Load(strPath))
! Parse();
}
--- 753,759 ----
m_bOk(false)
{
! if(wxFile::Exists(strPath))
! if(m_Doc.Load(strPath))
! Parse();
}
|