summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-28 20:44:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-01 13:56:16 +0100
commit51291f2352976b2f875197de83486a74795e86a3 (patch)
treee242cc8d246b3537928b79f44da7ea8e62c3a002
parentca3c3ac4bb100ac195e205f6ebfe6756d8a41174 (diff)
reconcile sw and sc rename autoformat dialogs
make the sw act like the sc one, its less weird Change-Id: I1e0a6ca7ee0490a16da4ff1941be8e4ac84d39d2 Reviewed-on: https://gerrit.libreoffice.org/50533 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/ui/table/tautofmt.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/table/tautofmt.cxx b/sw/source/ui/table/tautofmt.cxx
index bea100caf940..1d18805430bb 100644
--- a/sw/source/ui/table/tautofmt.cxx
+++ b/sw/source/ui/table/tautofmt.cxx
@@ -43,6 +43,7 @@ public:
m_xLabel->set_label(rEditTitle);
m_xDialog->set_title(rTitle);
m_xEdInput->set_text(rDefault);
+ m_xEdInput->select_region(0, -1);
}
OUString GetInputString() const
@@ -331,7 +332,7 @@ IMPL_LINK_NOARG(SwAutoFormatDlg, RenameHdl, Button*, void)
bool bOk = false;
while( !bOk )
{
- SwStringInputDlg aDlg(GetFrameWeld(), aStrRenameTitle, m_pLbFormat->GetSelectedEntry(), OUString());
+ SwStringInputDlg aDlg(GetFrameWeld(), aStrRenameTitle, aStrLabel, m_pLbFormat->GetSelectedEntry());
if (aDlg.run() == RET_OK)
{
bool bFormatRenamed = false;