Changeset 1867:15cf1fd6a505 in lemon-0.x
- Timestamp:
- 12/19/05 17:59:05 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2441
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/mapstorage.cc
r1860 r1867 213 213 lreader.run(); 214 214 215 if (content.nodeSetNum() < 1) 216 { 217 Gtk::MessageDialog mdialog("No nodeset found in file."); 218 mdialog.run(); 219 clear(); 220 return 1; 221 } 222 223 if (content.edgeSetNum() < 1) 224 { 225 Gtk::MessageDialog mdialog("No edgeset found in file."); 226 mdialog.run(); 227 clear(); 228 return 1; 229 } 230 215 231 const std::vector<std::string>& nodeMapNames = content.nodeSetMaps(0); 216 232 const std::vector<std::string>& edgeMapNames = content.edgeSetMaps(0); … … 257 273 GuiReader gui_reader(greader, this); 258 274 greader.run(); 259 } catch ( DataFormatError& error) {275 } catch (Exception& error) { 260 276 Gtk::MessageDialog mdialog(error.what()); 261 277 mdialog.run();
Note: See TracChangeset
for help on using the changeset viewer.