[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:36:02
Message-ID: 20050422233602.B4832496 () office ! kde ! org
[Download RAW message or body]

CVS commit by page: 

Don't pick colours from outside the image.


  M +4 -0      kis_tool_colorpicker.cc   1.50


--- koffice/krita/tools/kis_tool_colorpicker.cc  #1.49:1.50
@@ -73,4 +73,8 @@ void KisToolColorPicker::buttonPress(Kis
                 pos = QPoint(e -> pos().floorX(), e -> pos().floorY());
 
+                if (!img -> bounds().contains(pos)) {
+                        return;
+                }
+
                 if (dev -> pixel(pos.x(), pos.y(), &c, &opacity))
                         if(m_update)


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

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