Diffusion Krita 88ca5b48e721

Fix copy-pasting of shapes after changing image resolution

Authored by dkazakov on Mar 9 2018, 2:37 PM.

Description

Fix copy-pasting of shapes after changing image resolution

Steps to reproduce:

  1. Create a rectangular shape
  2. Image->Scale Image: do not rescale the image, just change its resolution, say, from 300 ppi to 600 ppi.
  3. Select the rectangle, press Ctrl+C, Ctrl+V

The shape should be pasted in the original size.

The problem it that when changing image resolution we scale the parent
shape layer, but the shape itself is not changed. Therefore, when copying
the shape into the clipboard, we should also save the shape's absolute
transformation, so that it could be pasted correclty.

(cherry picked from commit 82280e2a3c33fe1d60cdbe75d83bdd965a427df2)

Details

Committed
remptMar 17 2018, 8:54 AM
Parents
R37:9346ff09902e: Fix saving old ODF-based text objects in new files
Branches
Unknown
Tags
Unknown