diff options
author | vikasmahato <vikasmahato0@gmail.com> | 2017-12-31 18:17:15 +0530 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@gmail.com> | 2018-01-02 12:16:53 +0100 |
commit | 11cc1afb2fd46c3dfdd519ad51c5fb2e7e3b7837 (patch) | |
tree | 8a26e54ca3b9e4fd05c14635532c368b97fe459f | |
parent | 180fe42c7cff913a0d7e4059e9355f0cfed9ab6b (diff) |
tdf#40457 - Place captions above tables by default
Change-Id: I2b367a451c03b42120c7599158cc05b8c99e1697
Reviewed-on: https://gerrit.libreoffice.org/47216
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
-rw-r--r-- | sw/source/ui/frmdlg/cption.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sw/source/ui/frmdlg/cption.cxx b/sw/source/ui/frmdlg/cption.cxx index d8bc996a03ce..f1532f6599f6 100644 --- a/sw/source/ui/frmdlg/cption.cxx +++ b/sw/source/ui/frmdlg/cption.cxx @@ -242,7 +242,15 @@ SwCaptionDialog::SwCaptionDialog( vcl::Window *pParent, SwView &rV ) : m_pPosBox->InsertEntry(SwResId(STR_CAPTION_BEGINNING)); m_pPosBox->InsertEntry(SwResId(STR_CAPTION_END )); } - m_pPosBox->SelectEntryPos(1); + + if (eType & SelectionType::Table) + { + m_pPosBox->SelectEntryPos(0); + } + else + { + m_pPosBox->SelectEntryPos(1); + } m_pCategoryBox->GetModifyHdl().Call(*m_pCategoryBox); |