<?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>416352</bug_id>
          
          <creation_ts>2020-01-16 20:08:24 +0000</creation_ts>
          <short_desc>Changing height in Resize Canvas gives wrong offset values</short_desc>
          <delta_ts>2020-01-28 09:50:29 +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>nightly build (please specify the git hash!)</version>
          <rep_platform>Manjaro</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>0</everconfirmed>
          <reporter name="M">manuel.snudl.zeidler</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/kde/krita/commit/ff4143723cd0d2a24d0a21ee302880b14bacca05</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>1903209</commentid>
    <comment_count>0</comment_count>
    <who name="M">manuel.snudl.zeidler</who>
    <bug_when>2020-01-16 20:08:24 +0000</bug_when>
    <thetext>SUMMARY
Changing the height of the canvas and then using the anchor buttons in Image &gt; Resize Canvas seems to result in wrong offset values on the Y axis.

STEPS TO REPRODUCE
1. Create a new document of any size
2. Open Image &gt; Resize Canvas
3. Modify the canvas height, click the different anchor buttons and check the offset above

OBSERVED RESULT
A constant Y offset value is incorrectly added with the button order from left to right.

EXPECTED RESULT
Correct canvas alignment corresponding to the buttons.

SOFTWARE/OS VERSIONS
This issue only seems to be present in master and the Next AppImage (tested git 168d3a1), I could not reproduce it in 4.2.8 (from distro repo).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903218</commentid>
    <comment_count>1</comment_count>
    <who name="M">manuel.snudl.zeidler</who>
    <bug_when>2020-01-16 20:26:22 +0000</bug_when>
    <thetext>I forgot to state that changing the height input alone already causes an incorrect vertical offset, without the anchor buttons.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903309</commentid>
    <comment_count>2</comment_count>
    <who name="vanyossi">ghevan</who>
    <bug_when>2020-01-17 05:46:36 +0000</bug_when>
    <thetext>Git commit 510e56baaad81d7d2b270296f0a91ab27d24b299 by Ivan Yossi.
Committed on 17/01/2020 at 05:45.
Pushed by ivany into branch &apos;master&apos;.

Fix canvas offset calculation

M  +1    -1    plugins/extensions/imagesize/dlg_canvassize.cc

https://invent.kde.org/kde/krita/commit/510e56baaad81d7d2b270296f0a91ab27d24b299</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905999</commentid>
    <comment_count>3</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2020-01-28 09:50:29 +0000</bug_when>
    <thetext>Git commit ff4143723cd0d2a24d0a21ee302880b14bacca05 by Boudewijn Rempt, on behalf of Ivan Yossi.
Committed on 28/01/2020 at 09:12.
Pushed by rempt into branch &apos;krita/4.2&apos;.

Fix canvas offset calculation
(cherry picked from commit 510e56baaad81d7d2b270296f0a91ab27d24b299)

M  +2    -1    plugins/extensions/imagesize/dlg_canvassize.cc

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

    </bug>

</bugzilla>