summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 13:01:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 19:50:47 +0100
commitbddd6c77811e0489a5632437116f5eec356cc397 (patch)
tree761111e37f065d040a6d63ef1098de2afce16eae /basic
parenteb5563e7e636a9856d4f1cc23d00a21193b9d0cc (diff)
Revert "loplugin:changetoolsgen in avmedia..basic" and reapply plugin
because I (a) forgot to insert parentheses which changes the meaning of some expressions and (b) I now use the AdjustFoo calls when changing unary operations, which reads much better This reverts commit 1adb1a320a7e9832a41545bde13fd59d27ce7954. Change-Id: I52924b35008c8e4b44c8a6b6657cc3a1ac513886 Reviewed-on: https://gerrit.libreoffice.org/49848 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/inputbox.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx
index 3ff12c04a24c..c7f52dc47334 100644
--- a/basic/source/runtime/inputbox.cxx
+++ b/basic/source/runtime/inputbox.cxx
@@ -92,7 +92,7 @@ void SvRTLInputBox::InitButtons( const Size& rDlgSize )
aCancel->SetSizePixel( LogicToPixel( Size( 45, 15) ));
Point aPos( rDlgSize.Width()-45-10, 5 );
aOk->SetPosPixel( LogicToPixel( aPos ));
- aPos.setY( aPos.Y() + 16 );
+ aPos.AdjustY(16 );
aCancel->SetPosPixel( LogicToPixel( aPos ));
aOk->SetClickHdl(LINK(this,SvRTLInputBox, OkHdl));
aCancel->SetClickHdl(LINK(this,SvRTLInputBox,CancelHdl));
@@ -123,8 +123,8 @@ void SvRTLInputBox::PositionPrompt(const OUString& rPrompt,const Size& rDlgSize)
aPromptText->SetPosPixel( LogicToPixel(Point(5,5)));
aPromptText->SetText( aText_ );
Size aSize( rDlgSize );
- aSize.setWidth( aSize.Width() - 70 );
- aSize.setHeight( aSize.Height() - 50 );
+ aSize.AdjustWidth( -70 );
+ aSize.AdjustHeight( -50 );
aPromptText->SetSizePixel( LogicToPixel(aSize));
}