[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 16 08:25:15 UTC 2019


 vcl/source/control/edit.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2a86ebda07e52071f8a8766b74de7bc57cae3a09
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 16 08:33:01 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Apr 16 10:24:36 2019 +0200

    edit widget not redrawing text properly
    
    since...
    
    commit 4c4d9a482b93440fd3388ffa1715e66d1f391fea
    Date:   Sun Apr 14 16:41:42 2019 +0200
    
        loplugin:sequentialassign in vcl
    
    Change-Id: I55e47ab919757486e5eeaefea857df9578924cd2
    Reviewed-on: https://gerrit.libreoffice.org/70807
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 72cb09c30924..0ced8a8675ca 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -1032,13 +1032,13 @@ void Edit::ImplPaintBorder(vcl::RenderContext const & rRenderContext)
                     aClipRgn.Move(xNew - aBounds.Left(), 0);
 
                     // move offset of border window
-                    Point aBorderOffs = pBorder->ScreenToOutputPixel(OutputToScreenPixel(aBorderOffs));
+                    Point aBorderOffs = pBorder->ScreenToOutputPixel(OutputToScreenPixel(Point()));
                     aClipRgn.Move(aBorderOffs.X(), aBorderOffs.Y());
                 }
                 else
                 {
                     // normal case
-                    Point aBorderOffs = pBorder->ScreenToOutputPixel(OutputToScreenPixel(aBorderOffs));
+                    Point aBorderOffs = pBorder->ScreenToOutputPixel(OutputToScreenPixel(Point()));
                     aClipRgn.Move(aBorderOffs.X(), aBorderOffs.Y());
                 }
 


More information about the Libreoffice-commits mailing list