From: dooglus Date: Wed, 20 Feb 2008 02:06:47 +0000 (+0000) Subject: Tidied up the default naming of the file and canvas upon creation. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d474565b9fdb473a7c4d2db9822d8ff4f6eb79ed;p=synfig.git Tidied up the default naming of the file and canvas upon creation. git-svn-id: http://svn.voria.com/code@1781 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index 21995a8..1da982b 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -2037,9 +2037,10 @@ void App::new_instance() { handle canvas=synfig::Canvas::create(); - canvas->set_name(strprintf("%s%d", DEFAULT_FILENAME_PREFIX, Instance::get_count()+1)); - String file_name(strprintf("%s%d.sifz", DEFAULT_FILENAME_PREFIX, Instance::get_count()+1)); + String file_name(strprintf("%s%d", DEFAULT_FILENAME_PREFIX, Instance::get_count()+1)); + canvas->set_name(file_name); + file_name += ".sifz"; canvas->rend_desc().set_frame_rate(24.0); canvas->rend_desc().set_time_start(0.0);