• Jan-Marek Glogowski's avatar
    Workaround VCL complextext failure on Win7 KVM QXL · 6f995da5
    Jan-Marek Glogowski yazdı
    My Windows 7 KVM QXL VM fails the bounding rect test with:
    
    complextext.cxx:98 VclComplexTextTest::testArabic equality .. failed
    - Expected: 71x14@(0,1)
    - Actual  : 70x14@(1,1)
    
    This doesn't happen using a SSHd on Cygwin64 based session.
    
    Adding a SAL_DEBUG to WinSalGraphics::GetGlyphBoundRect shows many
    different glyph rects, which - probably by pure chance - almost add
    up to just a single pixel line missing on the left.
    
    So this simply drops the first pixel column, if the bounding rect
    starts with an offset. Works for me.
    
    Change-Id: Ia496a208523a9c358d4128ecad887b5c77283fbc
    Reviewed-on: https://gerrit.libreoffice.org/35647Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
    6f995da5
complextext.cxx 4.98 KB