Bug 294555

Summary: garbage shown outside the image on the canvas when rotating and panning the canvas
Product: [Applications] krita Reporter: LukasT <lukast.dev>
Component: GeneralAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: 2.4-snapshots   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Artifacts around canvas
the prescale projection

Description LukasT 2012-02-21 11:26:17 UTC
Created attachment 68977 [details]
Artifacts around canvas

Version:           2.4-snapshots (using KDE 4.7.4) 
OS:                Linux

There are some weird rectangles rendered around canvas when doing canvas rotation and panning.

Reproducible: Always

Steps to Reproduce:
1. Select pan tool, press Shift and by dragging rotate the canvas
2. Pan(drag) the canvas so that original top left corner is not visible and still move back so that it is visible (in one drag)

Actual Results:  
Observe weird boxes rendered around the canvas, see attachment

Expected Results:  
Canvas is rendered without additional rectangles or other artifacts

It does happen with QPainter canvas, not with OpenGL canvas.
Comment 1 Halla Rempt 2012-02-21 11:30:51 UTC
Hm... Didn't we already have a bug for this? I remember Dmitry closing a bug that sounded like this. I can confirm in any case, I saw the issue this weekend.
Comment 2 Sven Langkamp 2012-02-21 15:54:19 UTC
I did fix the last bug that looked like that. But this is a different issue.
Comment 3 Halla Rempt 2014-01-07 13:57:18 UTC
Created attachment 84499 [details]
the prescale projection

It's actually already the prescaled image that is full of garbage.
Comment 4 Halla Rempt 2014-01-07 14:34:42 UTC
Git commit df7d6cb1b97ab5e64ae09d744e905ec82c1a561d by Boudewijn Rempt.
Committed on 07/01/2014 at 14:26.
Pushed by rempt into branch 'master'.

On doing a full prescale, clear the projection image first.

M  +6    -23   krita/ui/canvas/kis_prescaled_projection.cpp
M  +0    -7    krita/ui/canvas/kis_prescaled_projection.h

http://commits.kde.org/calligra/df7d6cb1b97ab5e64ae09d744e905ec82c1a561d
Comment 5 Halla Rempt 2014-01-07 14:34:47 UTC
Git commit f6aa3e4755b174bb9cea3a4cb08ad7b6244432c7 by Boudewijn Rempt.
Committed on 07/01/2014 at 14:26.
Pushed by rempt into branch 'calligra/2.8'.

On doing a full prescale, clear the projection image first.

M  +6    -23   krita/ui/canvas/kis_prescaled_projection.cpp
M  +0    -7    krita/ui/canvas/kis_prescaled_projection.h

http://commits.kde.org/calligra/f6aa3e4755b174bb9cea3a4cb08ad7b6244432c7