Bug 276870

Summary: with zoom-out on display, 2 pixel right border displayed as transparent pixels
Product: [Applications] krita Reporter: David REVOY <info>
Component: GeneralAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: critical CC: dimula73, halla
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot of the phoenomena

Description David REVOY 2011-07-01 06:54:55 UTC
Created attachment 61520 [details]
screenshot of the phoenomena

Version:           svn trunk
OS:                Linux

When I zoom out, I often got displayed a border of 2 pixel on the right border of my canvas. They are displayed as if they was 2 transparent pixels. But, in my document, the full canvas is filled with a color. ( I don't use OpenGl rendering ). Tested here on a 1440x900px at 50% zoom out, filled with a dark purple. )

To see the effect, I place a screenshot on attachement. 

Reproducible: Didn't try


Actual Results:  
 

Expected Results:
Comment 1 David REVOY 2011-07-01 06:58:27 UTC
Note : this can be tested with many resolution, and sometime also affect the border of the bottom.
Comment 2 Halla Rempt 2011-07-01 07:42:24 UTC
Ack... I've seen it too. I blame my anti-aliasing improvement patches. Dmitry, can we discuss this when you're back from Astrakhan?
Comment 3 Halla Rempt 2011-09-20 07:58:11 UTC
This really is a big problem that needs to be solved for 2.4.
Comment 4 Halla Rempt 2011-11-04 19:54:45 UTC
If it must be solved, it's critical.
Comment 5 Dmitry Kazakov 2011-11-19 11:45:54 UTC
Git commit f0a2681d363a3524c8addb70059e7a0c5cb12bc0 by Dmitry Kazakov.
Committed on 19/11/2011 at 13:45.
Pushed by dkazakov into branch 'master'.

Workaround for a scaling bug in the canvas

The line at the bottom-right corner appears due to different
behavior of QPainter while scaling. Added a workaround and reported
a bug: https://bugreports.qt.nokia.com/browse/QTBUG-22827

BUG:276870

M  +14   -2    krita/ui/canvas/kis_coordinates_converter.cpp
M  +43   -0    krita/ui/tests/kis_prescaled_projection_test.cpp
M  +2    -0    krita/ui/tests/kis_prescaled_projection_test.h

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