Bug 369477

Summary: Transform tool when initiated on group layer disregards layer data of child layers outside of the canvas
Product: [Applications] krita Reporter: Raghavendra kamath <raghu>
Component: Tools/TransformAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: freebox64
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: (Video example)

Description Raghavendra kamath 2016-09-28 13:25:55 UTC
When the user initiates a transform tool over a group layer the resulting transformation is only done for the visible parts inside the canvas boundaries of a group layer. On the other hand when transform is applied to a layer it correctly takes into account the data that is outside the canvas boundaries.

Disregarding data outside the canvas area has a shortcoming . for example when we bring a group layer from a considerably bigger document to a smaller one the groups content are bound to go beyond canvas area , in this scenario user has to transform all the layers one by one to resize the whole group without cutting the data which is beyond the canvas boundary.

Reproducible: Always

Steps to Reproduce:
1.open a document and add a group layer with some children layer having pixels beyond the canvas
2.now try to transform the group


Actual Results:  
the pixels which are beyond the canvas area are not taken into consideration while transforming
Comment 1 mvowada 2017-01-04 11:56:17 UTC
Created attachment 103190 [details]
(Video example)

(In reply to Raghavendra kamath from comment #0)
> When the user initiates a transform tool over a group layer the resulting
> transformation is only done for the visible parts inside the canvas
> boundaries of a group layer. On the other hand when transform is applied to
> a layer it correctly takes into account the data that is outside the canvas
> boundaries.
> 
> Disregarding data outside the canvas area has a shortcoming . for example
> when we bring a group layer from a considerably bigger document to a smaller
> one the groups content are bound to go beyond canvas area , in this scenario
> user has to transform all the layers one by one to resize the whole group
> without cutting the data which is beyond the canvas boundary.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.open a document and add a group layer with some children layer having
> pixels beyond the canvas
> 2.now try to transform the group
> 
> 
> Actual Results:  
> the pixels which are beyond the canvas area are not taken into consideration
> while transforming

Hi Raghavendra, just checked with Krita 3.1.1 on Ubuntu 14.04 and it seems I'm not able to reproduce the problem. Please, see the video for the steps I've followed, thanks.
Comment 2 Raghavendra kamath 2017-01-04 13:19:29 UTC
Hi mvowada

Thanks for testing this bug report. you are correct it can't be reproduced in latest Krita . I tried Krita built from git too

However like you i am not getting the transform handles around the content outside the canvas it only shows handle to the visible content. but it transform everything including the content outside the canvas too, so this bug is not relevant now. I am closing it for now.