<?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>461894</bug_id>
          
          <creation_ts>2022-11-16 01:15:02 +0000</creation_ts>
          <short_desc>Paste into active layer will paste at the canvas center</short_desc>
          <delta_ts>2023-01-05 03:38:28 +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>5.1.3</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</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="Protoniv">ss93078</reporter>
          <assigned_to name="vanyossi">ghevan</assigned_to>
          <cc>ghevan</cc>
    
    <cc>raghu</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/commit/c69ed22d9c8881a36dddf3596629c201487398b0</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>2173885</commentid>
    <comment_count>0</comment_count>
    <who name="Protoniv">ss93078</who>
    <bug_when>2022-11-16 01:15:02 +0000</bug_when>
    <thetext>SUMMARY
&quot;Paste into active layer&quot; copy/cut from other layer will place at the canvas center.
&quot;Paste&quot;(ctrl+v) and &quot;Paste at cursor&quot;(ctrl+alt+v) works fine.

Happened both in 5.1.3 and master

STEPS TO REPRODUCE
1. Draw something, make a selection, copy/cut the selected area
2. Paste into active layer
3. The pasted content is at the center canvas

EXPECTED RESULT
Should at the same canvas position

ADDITIONAL INFORMATION
Doubt if it has something related to bug 459111</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173886</commentid>
    <comment_count>1</comment_count>
    <who name="Protoniv">ss93078</who>
    <bug_when>2022-11-16 01:20:37 +0000</bug_when>
    <thetext>Correction:
&quot;Paste into active layer&quot; copy/cut from the same document will place at the canvas center.
Sorry, my bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2188768</commentid>
    <comment_count>2</comment_count>
    <who name="Raghavendra kamath">raghu</who>
    <bug_when>2022-12-24 04:54:30 +0000</bug_when>
    <thetext>I can confirm this on Linux. This is indeed annoying</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2188769</commentid>
    <comment_count>3</comment_count>
    <who name="Raghavendra kamath">raghu</who>
    <bug_when>2022-12-24 04:57:02 +0000</bug_when>
    <thetext>There is a feedback thread on KA about this https://krita-artists.org/t/copy-and-paste-to-active-layer-dont-respect-the-position-of-copy-anymore/52121/17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2192056</commentid>
    <comment_count>4</comment_count>
    <who name="vanyossi">ghevan</who>
    <bug_when>2023-01-03 02:39:22 +0000</bug_when>
    <thetext>Git commit ad780c9e3636d04ebab82c9ac434c1343cb3fc14 by Ivan Yossi.
Committed on 03/01/2023 at 02:17.
Pushed by ivany into branch &apos;master&apos;.

Only center paste into active layer if contents are outside image bounds

M  +3    -1    libs/ui/actions/KisPasteActionFactories.cpp

https://invent.kde.org/graphics/krita/commit/ad780c9e3636d04ebab82c9ac434c1343cb3fc14</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193089</commentid>
    <comment_count>5</comment_count>
    <who name="vanyossi">ghevan</who>
    <bug_when>2023-01-05 03:38:28 +0000</bug_when>
    <thetext>Git commit c69ed22d9c8881a36dddf3596629c201487398b0 by Ivan Yossi.
Committed on 04/01/2023 at 15:26.
Pushed by ivany into branch &apos;krita/5.1&apos;.

Only center paste into active layer if contents are outside image bounds
(cherry picked from commit ad780c9e3636d04ebab82c9ac434c1343cb3fc14)

M  +3    -1    libs/ui/actions/KisPasteActionFactories.cpp

https://invent.kde.org/graphics/krita/commit/c69ed22d9c8881a36dddf3596629c201487398b0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>