- if (filename == "untitled.plt") {
- wxString untitledFilename = theApp->getUntitledFilename();
- SetFilename (untitledFilename, true);
- } else {
- if (! m_plot.fileRead (filename.c_str())) {
- *theApp->getLog() << "Unable to read plot file " << filename << "\n";
- return false;
- }
- *theApp->getLog() << "Read plot file " << filename << "\n";
- SetFilename (filename, true);
- m_namePlot = filename.c_str();
+ if (! m_plot.fileRead (filename.c_str())) {
+ *theApp->getLog() << "Unable to read plot file " << filename << "\n";
+ return false;