src/dialogs.cpp

changeset 311
c6e38e5e4f33
parent 286
7a562bf3d829
child 315
cb0c23f35e2b
--- a/src/dialogs.cpp	Mon Jul 01 23:07:35 2013 +0300
+++ b/src/dialogs.cpp	Tue Jul 02 00:06:06 2013 +0300
@@ -411,18 +411,18 @@
 		LDBFC::NoCertify;
 	
 	idx = dlg.rb_license->value ();
-	const char* license =
-		(idx == CCAL) ? "Redistributable under CCAL version 2.0 : see CAreadme.txt" :
-		(idx == NonCA) ? "Not redistributable : see NonCAreadme.txt" :
-		null;
+	const str license =
+		(idx == CCAL) ? CALicense :
+		(idx == NonCA) ? NonCALicense :
+		"";
 	
 	*g_curfile << new LDComment (dlg.le_name->text ());
 	*g_curfile << new LDComment ("Name: <untitled>.dat");
 	*g_curfile << new LDComment (fmt ("Author: %1", author));
 	*g_curfile << new LDComment (fmt ("!LDRAW_ORG Unofficial_Part"));
 	
-	if (license != null)
-		*g_curfile << new LDComment (fmt ("!LICENSE %1", license));
+	if( license != "" )
+		*g_curfile << new LDComment ( license );
 	
 	*g_curfile << new LDEmpty;
 	*g_curfile << new LDBFC (BFCType);

mercurial