diff options
author | Justin Luth <justin_luth@sil.org> | 2015-02-19 10:16:53 +0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-19 09:38:16 +0000 |
commit | 3eaeefe83772bacad4fe5e0f35bbf52b2590e835 (patch) | |
tree | 27b190615700da2cf09b10e741d7ea7d9e2ac372 /sw/source | |
parent | 42ec6448f9acd474d8ec1a92d9362e1b38e13758 (diff) |
allow generated, unique frame name to be saved
The document in tdf#77122 shows that frames can exist without a
name. Going to frame properties showed "Frame1" as the name for each
frame, and pressing OK didn't "set" this suggested name - the name
remained blank.
An alternative fix is removing "pNameED->SaveValue();". However,
this approach seems safer.
Change-Id: I1ed9d67442d55f2c481e6e4b35a876721a835522
Reviewed-on: https://gerrit.libreoffice.org/14548
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/frmdlg/frmpage.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index 6ad97d55d97a..743e57658a29 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -2904,6 +2904,8 @@ void SwFrmAddPage::Reset(const SfxItemSet *rSet ) aTmpName1 = pWrtSh->GetUniqueOLEName(); else aTmpName1 = pWrtSh->GetUniqueFrameName(); + + pWrtSh->SetFlyName(aTmpName1); } pNameED->SetText( aTmpName1 ); |