Revision: 2131
          http://synfig.svn.sourceforge.net/synfig/?rev=2131&view=rev
Author:   genete
Date:     2008-10-26 12:36:00 +0000 (Sun, 26 Oct 2008)

Log Message:
-----------
FIx a typo in the previous commit

Modified Paths:
--------------
    synfig-core/trunk/src/synfig/loadcanvas.cpp

Modified: synfig-core/trunk/src/synfig/loadcanvas.cpp
===================================================================
--- synfig-core/trunk/src/synfig/loadcanvas.cpp 2008-10-26 12:15:50 UTC (rev 
2130)
+++ synfig-core/trunk/src/synfig/loadcanvas.cpp 2008-10-26 12:36:00 UTC (rev 
2131)
@@ -1886,7 +1886,7 @@
        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 @@
        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);
        }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to