src/dialogs.cpp

changeset 251
c4b96bc41298
parent 250
6e80f038e8df
child 258
f9c48d4481e1
--- a/src/dialogs.cpp	Fri May 24 04:34:20 2013 +0300
+++ b/src/dialogs.cpp	Fri May 24 15:23:56 2013 +0300
@@ -115,7 +115,7 @@
 }
 
 void OverlayDialog::fillDefaults (int newcam) {
-	overlayMeta& info = g_overlays[newcam];
+	overlayMeta& info = g_win->R ()->getOverlay (newcam);
 	
 	if (info.img != null) {
 		le_fpath->setText (info.fname);
@@ -409,17 +409,17 @@
 		(idx == NonCA) ? "Not redistributable : see NonCAreadme.txt" :
 		null;
 	
-	objs.push_back (new LDComment (dlg.le_name->text ()));
-	objs.push_back (new LDComment ("Name: <untitled>.dat"));
-	objs.push_back (new LDComment (fmt ("Author: %s", author.chars())));
-	objs.push_back (new LDComment (fmt ("!LDRAW_ORG Unofficial_Part")));
+	objs << new LDComment (dlg.le_name->text ());
+	objs << new LDComment ("Name: <untitled>.dat");
+	objs << new LDComment (fmt ("Author: %s", author.chars()));
+	objs << new LDComment (fmt ("!LDRAW_ORG Unofficial_Part"));
 	
 	if (license != null)
-		objs.push_back (new LDComment (fmt ("!LICENSE %s", license)));
+		objs << new LDComment (fmt ("!LICENSE %s", license));
 	
-	objs.push_back (new LDEmpty);
-	objs.push_back (new LDBFC (BFCType));
-	objs.push_back (new LDEmpty);
+	objs << new LDEmpty;
+	objs << new LDBFC (BFCType);
+	objs << new LDEmpty;
 	
 	g_win->fullRefresh ();
 }

mercurial