git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2131
1f10aa63-cdf2-0310-b900-
c93c546f37ac
if(element->get_attribute("width"))
{
int width = atoi(element->get_attribute("width")->get_value().c_str());
- if (width < -1)
+ if (width < 1)
fatal_error(element, _("Canvas with width or height less than one is not allowed"));
canvas->rend_desc().set_w(width);
}
if(element->get_attribute("height"))
{
int height = atoi(element->get_attribute("height")->get_value().c_str());
- if (height < -1)
+ if (height < 1)
fatal_error(element, _("Canvas with width or height less than one is not allowed"));
canvas->rend_desc().set_h(height);
}