From: genete Date: Sun, 26 Oct 2008 12:36:00 +0000 (+0000) Subject: FIx a typo in the previous commit X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e7dee0d7590e02b5628adc879ca12ad119aea3ab;p=synfig.git FIx a typo in the previous commit git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2131 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index 1014435..e4b2e15 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -1886,7 +1886,7 @@ CanvasParser::parse_canvas(xmlpp::Element *element,Canvas::Handle parent,bool in 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); } @@ -1894,7 +1894,7 @@ CanvasParser::parse_canvas(xmlpp::Element *element,Canvas::Handle parent,bool in 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); }