[Libreoffice-commits] core.git: sw/source
vikasmahato
vikasmahato0 at gmail.com
Tue Jan 2 11:17:18 UTC 2018
sw/source/ui/frmdlg/cption.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit 11cc1afb2fd46c3dfdd519ad51c5fb2e7e3b7837
Author: vikasmahato <vikasmahato0 at 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.heiko at gmail.com>
Tested-by: Heiko Tietze <tietze.heiko at 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);
More information about the Libreoffice-commits
mailing list