[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/krita/tools
From:       Adrian Page <adrian () pagenet ! plus ! com>
Date:       2005-04-22 23:31:47
Message-ID: 20050422233147.E3F9F496 () office ! kde ! org
[Download RAW message or body]

CVS commit by page: 

Don't try to fill from a point outside the image.


  M +4 -1      kis_tool_fill.cc   1.57


--- koffice/krita/tools/kis_tool_fill.cc  #1.56:1.57
@@ -117,5 +117,8 @@ void KisToolFill::buttonPress(KisButtonP
         int x, y;
         x = e -> pos().floorX();
-        y= e -> pos().floorY();
+        y = e -> pos().floorY();
+        if (!m_currentImage -> bounds().contains(x, y)) {
+                return;
+        }
         flood(x, y);
         notifyModified();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic