diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/doclay.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/cption.cxx | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx index 2d0988247906..767f72514603 100644 --- a/sw/source/core/doc/doclay.cxx +++ b/sw/source/core/doc/doclay.cxx @@ -1347,8 +1347,10 @@ lcl_InsertLabel(SwDoc & rDoc, SwTxtFmtColls *const pTxtFmtCollTbl, pNewSet->Put( SwFmtSurround( SURROUND_NONE ) ); pNewSet->Put( SvxOpaqueItem( RES_OPAQUE, sal_True ) ); - pNewSet->Put( SwFmtVertOrient( text::VertOrientation::TOP ) ); - pNewSet->Put( SwFmtHoriOrient( text::HoriOrientation::CENTER ) ); + + sal_Int16 eVert = bBefore ? text::VertOrientation::BOTTOM : text::VertOrientation::TOP; + pNewSet->Put( SwFmtVertOrient( 0, eVert ) ); + pNewSet->Put( SwFmtHoriOrient( 0, text::HoriOrientation::CENTER ) ); aFrmSize = pOldFmt->GetFrmSize(); aFrmSize.SetWidthPercent( 100 ); diff --git a/sw/source/ui/frmdlg/cption.cxx b/sw/source/ui/frmdlg/cption.cxx index ab1e5d8f30cb..ba236522f5f0 100644 --- a/sw/source/ui/frmdlg/cption.cxx +++ b/sw/source/ui/frmdlg/cption.cxx @@ -239,11 +239,6 @@ SwCaptionDialog::SwCaptionDialog( Window *pParent, SwView &rV ) : break; } m_pPosBox->SelectEntryPos(1); - if (eType & (nsSelectionType::SEL_GRF|nsSelectionType::SEL_DRW)) - { - m_pPosText->Enable( sal_False ); - m_pPosBox->Enable( sal_False ); - } m_pCategoryBox->GetModifyHdl().Call(m_pCategoryBox); |