From e7dee0d7590e02b5628adc879ca12ad119aea3ab Mon Sep 17 00:00:00 2001 From: genete Date: Sun, 26 Oct 2008 12:36:00 +0000 Subject: [PATCH] FIx a typo in the previous commit git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2131 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/loadcanvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.7.4