@@ -, +, @@ captions to graphics --- main/sw/source/core/doc/doclay.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/main/sw/source/core/doc/doclay.cxx +++ a/main/sw/source/core/doc/doclay.cxx @@ -1416,8 +1416,12 @@ 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 ) ); + pNewSet->Put( SwFmtVertOrient( 0, + bBefore ? + text::VertOrientation::BOTTOM : + text::VertOrientation::TOP, + text::RelOrientation::FRAME ) ); + pNewSet->Put( SwFmtHoriOrient( 0, text::HoriOrientation::CENTER ) ); aFrmSize = pOldFmt->GetFrmSize(); aFrmSize.SetWidthPercent( 100 ); --