summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-16 08:33:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-04-16 10:24:36 +0200
commit2a86ebda07e52071f8a8766b74de7bc57cae3a09 (patch)
treea13b7761c4120bae1190b2298c0e8a939dbced8f /vcl/source/control/edit.cxx
parent033e1130a65ec7f0fa9c46e5124adc9d8bf724ba (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx4
1 files changed, 2 insertions, 2 deletions
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());
}