From: dooglus Date: Sat, 26 Jan 2008 11:51:32 +0000 (+0000) Subject: Fix the error about being unable to parse the grid_size metadata. It was previously... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a27deaf2322fab351ac47cbed699ec3ab8eb198d;p=synfig.git Fix the error about being unable to parse the grid_size metadata. It was previously only complaining if the grid_size wasn't specified, or was specified to be empty. git-svn-id: http://svn.voria.com/code@1502 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/workarea.cpp b/synfig-studio/trunk/src/gtkmm/workarea.cpp index 6e31a6e..9b77c6c 100644 --- a/synfig-studio/trunk/src/gtkmm/workarea.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarea.cpp @@ -892,6 +892,8 @@ WorkArea::load_meta_data() if(!tmp.empty()) gx=stratof(tmp); + else + synfig::error("WorkArea::load_meta_data(): Unable to parse data for \"grid_size\", which was \"%s\"",data.c_str()); if(iter==data.end()) tmp.clear(); @@ -900,11 +902,11 @@ WorkArea::load_meta_data() if(!tmp.empty()) gy=stratof(tmp); + else + synfig::error("WorkArea::load_meta_data(): Unable to parse data for \"grid_size\", which was \"%s\"",data.c_str()); set_grid_size(Vector(gx,gy)); } - else - synfig::error("WorkArea::load_meta_data(): Unable to parse data for \"grid_size\", which was \"%s\"",data.c_str()); data=canvas->get_meta_data("grid_show"); if(data.size() && (data=="1" || data[0]=='t' || data[0]=='T'))