zz_newPartDialog.cpp

changeset 160
edcb03f3ef75
parent 158
499286fcbf37
child 161
c9fba92c4e35
--- a/zz_newPartDialog.cpp	Sat May 04 13:52:47 2013 +0300
+++ b/zz_newPartDialog.cpp	Sat May 04 18:31:03 2013 +0300
@@ -84,13 +84,13 @@
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
 void NewPartDialog::StaticDialog () {
-	NewPartDialog dlg (g_ForgeWindow);
+	NewPartDialog dlg (g_win);
 	if (dlg.exec ()) {
 		newFile ();
 		
 		short idx;
 		str zAuthor = dlg.le_author->text ();
-		vector<LDObject*>& objs = g_CurrentFile->objects;
+		vector<LDObject*>& objs = g_curfile->m_objs;
 		
 		idx = dlg.rb_BFC->value ();
 		const LDBFC::Type eBFCType =
@@ -116,6 +116,6 @@
 		objs.push_back (new LDBFC (eBFCType));
 		objs.push_back (new LDEmpty);
 		
-		g_ForgeWindow->refresh ();
+		g_win->refresh ();
 	}
 }
\ No newline at end of file

mercurial