[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Thu Mar 8 13:36:50 UTC 2018


 vcl/source/app/salvtables.cxx |    1 +
 vcl/source/window/layout.cxx  |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 21ef6e1157ccaca2916ec124e116fe85c74bb4ec
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Mar 8 09:06:58 2018 +0000

    tdf#116264 Show added_buttons by default
    
    Change-Id: Ia2d299fdc63d3f75ea0cdb9e9b6ca8340a63cd06
    Reviewed-on: https://gerrit.libreoffice.org/50935
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index b01cff2f25b9..bb304d2dc811 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -448,6 +448,7 @@ public:
         VclButtonBox* pBox = m_xDialog->get_action_area();
         VclPtr<PushButton> xButton(VclPtr<PushButton>::Create(pBox, WB_CLIPCHILDREN|WB_CENTER|WB_VCENTER));
         xButton->SetText(rText);
+        xButton->Show();
         m_xDialog->add_button(xButton, nResponse, true);
     }
 
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 2839ab356385..2e8fec856ce2 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2235,6 +2235,7 @@ void MessageDialog::create_message_area()
             case VclButtonsType::Cancel:
                 pBtn.set( VclPtr<CancelButton>::Create(pButtonBox) );
                 pBtn->SetStyle(pBtn->GetStyle() & WB_DEFBUTTON);
+                pBtn->Show();
                 pBtn->set_id("cancel");
                 add_button(pBtn, RET_CANCEL, true);
                 nDefaultResponse = RET_CANCEL;


More information about the Libreoffice-commits mailing list