<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>130481</bug_id>
          
          <creation_ts>2006-07-08 23:14:33 +0000</creation_ts>
          <short_desc>Clicking and dragging outside the direct canvas should still initiate an action</short_desc>
          <delta_ts>2006-11-03 11:49:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Zander">zander</reporter>
          <assigned_to name="Halla Rempt">halla</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>452379</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Zander">zander</who>
    <bug_when>2006-07-08 23:14:33 +0000</bug_when>
    <thetext>Version:           1.5.9 (using KDE 3.5.3, compiled sources)
Compiler:          Target: x86_64-linux-gnu
OS:                Linux (x86_64) release 2.6.13.2

When you have selected a tool you can paint by clicking and dragging. This works for most tools inside the boundaries of the painting as well as outside. Where outside is the gray area between the painting and the rulers.
For example you can paint half a rectangle by starting a drag outside the canvas.

The bug is that this does not work for all tools. The freehand is one. The Crop is another (though the crop should still clip to the canvas).

Please go through all tools and make them consistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>462143</commentid>
    <comment_count>1</comment_count>
    <who name="Bart Coppens">kde</who>
    <bug_when>2006-08-21 22:09:30 +0000</bug_when>
    <thetext>SVN commit 575636 by coppens:

Due to popular request: allow freehand painting strokes to start outside the image area. This would be especially handy together with wishlist item 132759

CCBUG:130481
CCBUG:132759

 M  +4 -2      kis_tool_freehand.cc  


--- branches/koffice/1.6/koffice/krita/ui/kis_tool_freehand.cc #575635:575636
@@ -81,9 +81,11 @@
 
     if (e-&gt;button() == QMouseEvent::LeftButton) {
         
+        // People complain that they can&apos;t start brush strokes outside of the image boundaries.
+        // This makes sense, especially when combined with BUG:132759, so commenting out the
+        // next line makes sense.
+        //if (!m_currentImage-&gt;bounds().contains(e-&gt;pos().floorQPoint())) return;
         
-        if (!m_currentImage-&gt;bounds().contains(e-&gt;pos().floorQPoint())) return;
-        
         initPaint(e);
         paintAt(e-&gt;pos(), e-&gt;pressure(), e-&gt;xTilt(), e-&gt;yTilt());
 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483465</commentid>
    <comment_count>2</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2006-11-03 11:45:54 +0000</bug_when>
    <thetext>SVN commit 601444 by rempt:

Fix crop tool so clicking outside the image area works
CCBUG: 130481


 M  +24 -15    kis_tool_crop.cc  


--- branches/koffice/1.6/koffice/krita/plugins/tools/tool_crop/kis_tool_crop.cc #601443:601444
@@ -147,25 +147,34 @@
 
         if (img &amp;&amp; img-&gt;activeDevice() &amp;&amp; e-&gt;button() == LeftButton) {
 
-            if (img-&gt;bounds().contains(e-&gt;pos().floorQPoint())) {
+            QPoint pos = e-&gt;pos().floorQPoint();
+            QRect b = img-&gt;bounds();
 
-                m_selecting = true;
+            if (pos.x() &lt; b.x()) 
+                pos.setX(b.x());
+            else if (pos.x() &gt; b.x() + b.width()) 
+                pos.setX(b.x() + b.width());
 
-                if( !m_haveCropSelection ) //if the selection is not set
-                {
-                    QPoint p = e-&gt;pos().floorQPoint();
-                    m_rectCrop = QRect( p.x(), p.y(), 0, 0);
-                    paintOutlineWithHandles();
-                }
-                else
-                {
-                    KisCanvasController *controller = m_subject-&gt;canvasController();
-                    m_mouseOnHandleType = mouseOnHandle(controller -&gt;windowToView(e-&gt;pos().floorQPoint()));
-                    m_dragStart = e-&gt;pos().floorQPoint();
-                }
+            if (pos.y() &lt; b.y())
+                pos.setY(b.y());
+            else if (pos.y() &gt; b.y() + b.height())
+                pos.setY(b.y() + b.height());
+            
+            m_selecting = true;
 
-                updateWidgetValues();
+            if( !m_haveCropSelection ) //if the selection is not set
+            {
+                m_rectCrop = QRect( pos.x(), pos.y(), 0, 0);
+                paintOutlineWithHandles();
             }
+            else
+            {
+                KisCanvasController *controller = m_subject-&gt;canvasController();
+                m_mouseOnHandleType = mouseOnHandle(controller -&gt;windowToView(pos));
+                m_dragStart = pos;
+            }
+
+            updateWidgetValues();
         }
     }
 }
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483466</commentid>
    <comment_count>3</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2006-11-03 11:49:46 +0000</bug_when>
    <thetext>Checked all tools, fixed the crop tool. Forward ported to trunk.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>