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

Caolán McNamara caolanm at redhat.com
Thu Jan 5 16:10:34 UTC 2017


 sc/source/ui/inc/navipi.hxx    |    8 ++++++++
 sc/source/ui/navipi/navipi.cxx |    2 ++
 2 files changed, 10 insertions(+)

New commits:
commit f91dc0342de13e648dba5d9a93c01db23ae83533
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jan 5 16:07:10 2017 +0000

    Resolves: tdf#104919 crash with empty ScNavigatorDlg member
    
    commit 292560a957498bed70b625c992ec6bcf631dceb3
    Author: Noel Grandin <noel.grandin at collabora.co.uk>
    Date:   Mon Oct 17 13:23:23 2016 +0200
    
        loplugin:unusedmethods
    
    detected the intended methods to do this were unused, so restore then, but hook
    them up this time
    
    Change-Id: I3b7e4a557696a91a70956487468b99fec6324a93

diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx
index 166e37a..a7991fa 100644
--- a/sc/source/ui/inc/navipi.hxx
+++ b/sc/source/ui/inc/navipi.hxx
@@ -112,6 +112,10 @@ class ColumnEdit : public SpinField
 public:
     ColumnEdit(Window* pParent, WinBits nWinBits);
     ~ColumnEdit() override;
+    void SetNavigatorDlg(ScNavigatorDlg *pNaviDlg)
+    {
+        xDlg = pNaviDlg;
+    }
     SCCOL   GetCol() { return nCol; }
     void    SetCol( SCCOL nColNo );
 
@@ -140,6 +144,10 @@ class RowEdit : public NumericField
 public:
     RowEdit(Window* pParent, WinBits nWinBits);
     ~RowEdit() override;
+    void SetNavigatorDlg(ScNavigatorDlg *pNaviDlg)
+    {
+        xDlg = pNaviDlg;
+    }
     SCROW   GetRow() { return (SCROW)GetValue(); }
     void    SetRow(SCROW nRow) { SetValue(nRow); }
 
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 42187f8..e8e5745 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -450,7 +450,9 @@ ScNavigatorDlg::ScNavigatorDlg(SfxBindings* pB, bool bSidebar, vcl::Window* pPar
 {
     get(aLbDocuments, "documents");
     get(aEdCol, "column");
+    aEdCol->SetNavigatorDlg(this);
     get(aEdRow, "row");
+    aEdRow->SetNavigatorDlg(this);
     get(aTbxCmd, "toolbox");
     aTbxCmd->SetSelectHdl(LINK(this, ScNavigatorDlg, ToolBoxSelectHdl));
     aTbxCmd->SetDropdownClickHdl(LINK(this, ScNavigatorDlg, ToolBoxDropdownClickHdl));


More information about the Libreoffice-commits mailing list