FIx a typo in the previous commit
authorgenete <genete@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 26 Oct 2008 12:36:00 +0000 (12:36 +0000)
committergenete <genete@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 26 Oct 2008 12:36:00 +0000 (12:36 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2131 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/loadcanvas.cpp

index 1014435..e4b2e15 100644 (file)
@@ -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);
        }