summaryrefslogtreecommitdiff
path: root/sc/source/ui/namedlg/namedefdlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-04-16 20:41:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-04-17 10:25:10 +0100
commit02179ab7e771fae9d012724b8ff1397f4265cfc1 (patch)
tree2f56bf55fcfe40f2833a4d028b90e6c80e8cd532 /sc/source/ui/namedlg/namedefdlg.cxx
parenta59565f855cb30fff56eb3d889376bfd27dc728f (diff)
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
Diffstat (limited to 'sc/source/ui/namedlg/namedefdlg.cxx')
-rw-r--r--sc/source/ui/namedlg/namedefdlg.cxx3
1 files changed, 2 insertions, 1 deletions
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");