sc/source/ui/inc/inscldlg.hxx      |    1 -
 sc/source/ui/miscdlgs/inscldlg.cxx |    3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 325bab6a92921a0356cc3e1c66f14ad0c6200d85
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Wed Nov 2 18:40:09 2022 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Sat Nov 19 16:45:39 2022 +0100

    Dont use equal name for label and widget
    
    Change-Id: I71b052aff4317b416f0c02bde549461b64f1a6f1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142181
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142968
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/sc/source/ui/inc/inscldlg.hxx b/sc/source/ui/inc/inscldlg.hxx
index d159c65cd8ac..b44bfb60baa9 100644
--- a/sc/source/ui/inc/inscldlg.hxx
+++ b/sc/source/ui/inc/inscldlg.hxx
@@ -30,7 +30,6 @@ private:
     std::unique_ptr<weld::RadioButton> m_xBtnCellsRight;
     std::unique_ptr<weld::RadioButton> m_xBtnInsRow;
     std::unique_ptr<weld::RadioButton> m_xBtnInsCol;
-    std::unique_ptr<weld::Label> m_xLbCellsRight;
 
 public:
     ScInsertCellDlg(weld::Window* pParent, bool bDisallowCellMove);
diff --git a/sc/source/ui/miscdlgs/inscldlg.cxx 
b/sc/source/ui/miscdlgs/inscldlg.cxx
index ac97c6ac3578..e077724f4264 100644
--- a/sc/source/ui/miscdlgs/inscldlg.cxx
+++ b/sc/source/ui/miscdlgs/inscldlg.cxx
@@ -32,11 +32,10 @@ ScInsertCellDlg::ScInsertCellDlg(weld::Window* pParent, 
bool bDisallowCellMove)
     , m_xBtnCellsRight(m_xBuilder->weld_radio_button("right"))
     , m_xBtnInsRow(m_xBuilder->weld_radio_button("rows"))
     , m_xBtnInsCol(m_xBuilder->weld_radio_button("cols"))
-    , m_xLbCellsRight(m_xBuilder->weld_label("right"))
 {
     const ScViewData* pViewData = ScDocShell::GetViewData();
     if (pViewData && 
pViewData->GetDocument().IsLayoutRTL(pViewData->GetTabNo()))
-        m_xLbCellsRight->set_label(ScResId(SCSTR_INSERT_RTL));
+        m_xBtnCellsRight->set_label(ScResId(SCSTR_INSERT_RTL));
 
     if (bDisallowCellMove)
     {

Reply via email to