<?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>452605</bug_id>
          
          <creation_ts>2022-04-14 11:14:27 +0000</creation_ts>
          <short_desc>Checking &apos;Constrain Proportions&apos; makes the size change to not apply on resizing canvas</short_desc>
          <delta_ts>2025-05-30 10:02:57 +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>Resize/Scale Image/Layer</component>
          <version>nightly build (please specify the git hash!)</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>All</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>acc4commissions</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>halla</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/-/commit/988b4af005a739966347921a72aeaaea26d0c856</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>2117351</commentid>
    <comment_count>0</comment_count>
    <who name="">acc4commissions</who>
    <bug_when>2022-04-14 11:14:27 +0000</bug_when>
    <thetext>SUMMARY
git ad3b02d

checking &apos;constrain proportions&apos; makes the size change to not apply on resizing canvas

STEPS TO REPRODUCE
1. Go to Menu &gt; Image &gt; Resize Canvas 
2. Uncheck &apos;Constrain Proportions&apos; if it&apos;s checked.
3. Type in some numbers in width and height, watch the preview changes in the bottom in the offset section.
4. Check &apos;Constrain Proportions&apos;.

OBSERVED RESULT
The preview changes to the image&apos;s original state. And when you apply it by clicking OK button, the size change doesn&apos;t actually apply.

EXPECTED RESULT
The preview and the size change shouldn&apos;t be affected by checking &apos;Constrain Proportions&apos;.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
If you modify the width and height numbers after this bug happens, it starts to work again like normal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2429021</commentid>
    <comment_count>1</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2025-05-30 09:54:39 +0000</bug_when>
    <thetext>Sorry for the late reply. I can confirm the issue. Thank you for the report!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2429024</commentid>
    <comment_count>2</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2025-05-30 10:02:32 +0000</bug_when>
    <thetext>Git commit 20d6643a0c950830de98266c7a8166d59a0d49b8 by Halla Rempt.
Committed on 30/05/2025 at 09:59.
Pushed by rempt into branch &apos;master&apos;.

Reset the canvas size on toggling preserve aspect ratio

The original intent of Juan Palacios&apos; patch committed twelve
years ago was to reset the dialog to the original values:

https://invent.kde.org/graphics/krita/-/commit/b005c7e0dc569f58308b08238b0b3c67101783f0

It is debatable whether we should do that and not keep the
values the user entered, but that needs more discussion.

CCMAIL:kimageshop@kde.org

M  +3    -2    libs/ui/imagesize/dlg_canvassize.cc

https://invent.kde.org/graphics/krita/-/commit/20d6643a0c950830de98266c7a8166d59a0d49b8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2429025</commentid>
    <comment_count>3</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2025-05-30 10:02:57 +0000</bug_when>
    <thetext>Git commit 988b4af005a739966347921a72aeaaea26d0c856 by Halla Rempt.
Committed on 30/05/2025 at 10:02.
Pushed by rempt into branch &apos;krita/5.2&apos;.

Reset the canvas size on toggling preserve aspect ratio

The original intent of Juan Palacios&apos; patch committed twelve
years ago was to reset the dialog to the original values:

https://invent.kde.org/graphics/krita/-/commit/b005c7e0dc569f58308b08238b0b3c67101783f0

It is debatable whether we should do that and not keep the
values the user entered, but that needs more discussion.

CCMAIL:kimageshop@kde.org
(cherry picked from commit 20d6643a0c950830de98266c7a8166d59a0d49b8)

M  +3    -2    libs/ui/imagesize/dlg_canvassize.cc

https://invent.kde.org/graphics/krita/-/commit/988b4af005a739966347921a72aeaaea26d0c856</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>