Kaydet (Commit) f91dc034 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#104919 crash with empty ScNavigatorDlg member

commit 292560a9
Author: Noel Grandin <noel.grandin@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
üst 1606e22d
......@@ -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); }
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment