From 02179ab7e771fae9d012724b8ff1397f4265cfc1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 16 Apr 2013 20:41:34 +0100 Subject: stash the label widget for shrink mode in the edit, not the button because we always have we a refedit, but sometimes not a refbutton, so set the label widget to use for the dialog shrink mode on the refedit instead of the refbutton. This way we get the shrunken dialog title bar updated with the label contents regardless of using the shrink button or clicking in the editbox and dragging the mouse around the spreadsheet triggering the shrink mode Change-Id: Ifdff01a30d5c65aa964d4bf544017a2927757d67 --- sc/source/ui/namedlg/namedefdlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sc/source/ui/namedlg/namedefdlg.cxx') diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx index 7ece754c88cf..812f56dc67bf 100644 --- a/sc/source/ui/namedlg/namedefdlg.cxx +++ b/sc/source/ui/namedlg/namedefdlg.cxx @@ -66,8 +66,9 @@ ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParen { get(m_pEdName, "edit"); get(m_pEdRange, "range"); + m_pEdRange->SetReferences(this, m_pEdName); get(m_pRbRange, "refbutton"); - m_pRbRange->SetReferences(this, m_pEdRange, m_pEdName); + m_pRbRange->SetReferences(this, m_pEdRange); get(m_pLbScope, "scope"); get(m_pBtnRowHeader, "rowheader"); get(m_pBtnColHeader, "colheader"); -- cgit