[PATCH] avoid line size < 1

Gonzalo Odiard godiard at gmail.com
Wed Jun 2 19:11:29 EDT 2010


---
 Area.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Area.py b/Area.py
index c83f38f..286cc1b 100644
--- a/Area.py
+++ b/Area.py
@@ -1177,6 +1177,8 @@ class Area(gtk.DrawingArea):
     def change_line_size(self, delta):
         if self.tool['name'] in ['pencil','eraser','brush','rainbow']:
             size = self.tool['line size'] + delta
+            if size < 1:
+                size = 1
             self.tool['line size'] = size
             self.configure_line(size)
             self.queue_draw()
-- 
1.6.6.1


-- 
Gonzalo Odiard
Responsable de Desarrollo
Sistemas Australes

--000e0cd7613a3c08cf048814367e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



More information about the Sugar-devel mailing list