summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-28 20:13:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-29 10:21:08 +0200
commit26c08a91e86027c3f37dbd462209e63a5b26b259 (patch)
treec93416796e2f146182fc8d375a441a46a0b638d1
parent22a30af8b08114cac3626a9990a600a8ebb090a3 (diff)
expand last ImageButton to underlying PushButton
Change-Id: I260a738b06831684840175ba9b126ce41bacedfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99649 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/app/inputwin.cxx2
-rw-r--r--sc/source/ui/inc/inputwin.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index ea75795f1e10..c67c8963327e 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -860,7 +860,7 @@ void ScInputWindow::AutoSum( bool& bRangeFinder, bool& bSubTotal, OpCode eCode )
ScInputBarGroup::ScInputBarGroup(vcl::Window* pParent, ScTabViewShell* pViewSh)
: ScTextWndBase(pParent, WinBits(WB_HIDE | WB_TABSTOP)),
maTextWndGroup(VclPtr<ScTextWndGroup>::Create(this, pViewSh)),
- maButton(VclPtr<ImageButton>::Create(this, WB_TABSTOP | WB_FLATBUTTON | WB_SMALLSTYLE | WB_NOPOINTERFOCUS)),
+ maButton(VclPtr<PushButton>::Create(this, WB_TABSTOP | WB_FLATBUTTON | WB_SMALLSTYLE | WB_NOPOINTERFOCUS | WB_CENTER | WB_VCENTER)),
mnVertOffset(0)
{
maTextWndGroup->Show();
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index 7fc620eb22c1..1fe62fedca21 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -251,7 +251,7 @@ private:
void TriggerToolboxLayout();
VclPtr<ScTextWndGroup> maTextWndGroup;
- VclPtr<ImageButton> maButton;
+ VclPtr<PushButton> maButton;
long mnVertOffset;
DECL_LINK(ClickHdl, Button*, void);