sw/source/ui/frmdlg/cption.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
New commits: commit 11cc1afb2fd46c3dfdd519ad51c5fb2e7e3b7837 Author: vikasmahato <vikasmaha...@gmail.com> Date: Sun Dec 31 18:17:15 2017 +0530 tdf#40457 - Place captions above tables by default Change-Id: I2b367a451c03b42120c7599158cc05b8c99e1697 Reviewed-on: https://gerrit.libreoffice.org/47216 Reviewed-by: Heiko Tietze <tietze.he...@gmail.com> Tested-by: Heiko Tietze <tietze.he...@gmail.com> 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits