summaryrefslogtreecommitdiff
path: root/vcl/source/edit/vclmedit.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-07 17:35:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 08:13:44 +0100
commit44d5188b2fd8afc82aa8fda1ad4b374734129aea (patch)
tree07fae7bdc2d87332370d064f9fc81b693a477215 /vcl/source/edit/vclmedit.cxx
parent5eba05a0582cbb836c3715089e5d3bfe1ee19ded (diff)
loplugin:unusedfields
Change-Id: Id332557cbe7fb42d3d794612f26aa3ac161548d9 Reviewed-on: https://gerrit.libreoffice.org/50902 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit/vclmedit.cxx')
-rw-r--r--vcl/source/edit/vclmedit.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index 24b3ae713f30..092970d08f28 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -42,7 +42,6 @@ private:
VclPtr<ScrollBar> mpVScrollBar;
VclPtr<ScrollBarBox> mpScrollBox;
- Point maTextWindowOffset;
long mnTextWidth;
mutable Selection maSelection;
@@ -379,7 +378,7 @@ void ImpVclMEdit::Resize()
else
mpHScrollBar->setPosSizePixel( 0, aEditSize.Height()-nSBWidth, aSz.Width(), nSBWidth );
- Point aTextWindowPos( maTextWindowOffset );
+ Point aTextWindowPos;
if ( mpVScrollBar )
{
if( AllSettings::GetLayoutRTL() )
@@ -395,8 +394,6 @@ void ImpVclMEdit::Resize()
mpScrollBox->setPosSizePixel( aSz.Width(), aSz.Height(), nSBWidth, nSBWidth );
Size aTextWindowSize( aSz );
- aTextWindowSize.AdjustWidth( -(maTextWindowOffset.X()) );
- aTextWindowSize.AdjustHeight( -(maTextWindowOffset.Y()) );
if ( aTextWindowSize.Width() < 0 )
aTextWindowSize.setWidth( 0 );
if ( aTextWindowSize.Height() < 0 )