summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/sqlmessage.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 12:48:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 15:14:05 +0100
commit413c7b426543e71f4865c858b5b4ca62b48573d3 (patch)
treece0c71f47ffab017ba13b50263e06e36556fc5e0 /dbaccess/source/ui/dlg/sqlmessage.cxx
parent1d180f48bc61444c610c35083e35745d38c6cce2 (diff)
Revert "loplugin:changetoolsgen in dbaccess..desktop" 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 a9ca38bdf7ff9d15529b5903e640987fc14c0fa7. Change-Id: I662ef2f1100a06a68decb2c71975fbc61aeaa47d Reviewed-on: https://gerrit.libreoffice.org/49847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/dlg/sqlmessage.cxx')
-rw-r--r--dbaccess/source/ui/dlg/sqlmessage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx
index 73c8dfd8633d..469102a47886 100644
--- a/dbaccess/source/ui/dlg/sqlmessage.cxx
+++ b/dbaccess/source/ui/dlg/sqlmessage.cxx
@@ -498,7 +498,7 @@ void OSQLMessageBox::impl_positionControls()
// also, if it's not as high as the image ...
if ( aPrimaryRect.GetHeight() < m_aInfoImage->GetSizePixel().Height() )
{ // ... make it fit the image height
- aPrimaryRect.SetBottom( aPrimaryRect.Bottom() + aInfoRect.GetHeight() - aPrimaryRect.GetHeight() );
+ aPrimaryRect.AdjustBottom(aInfoRect.GetHeight() - aPrimaryRect.GetHeight() );
// and center it vertically
m_aTitle->SetStyle( m_aTitle->GetStyle() | WB_VCENTER );
}