Kaydet (Commit) d2846c53 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

49155: improve vertical position of graphic object when a caption is applied

patch by: Ariel <arielch@apache.org>
review by: Oliver <orw@apache.org>
üst 91845241
...@@ -1416,8 +1416,8 @@ lcl_InsertLabel(SwDoc & rDoc, SwTxtFmtColls *const pTxtFmtCollTbl, ...@@ -1416,8 +1416,8 @@ lcl_InsertLabel(SwDoc & rDoc, SwTxtFmtColls *const pTxtFmtCollTbl,
pNewSet->Put( SwFmtSurround( SURROUND_NONE ) ); pNewSet->Put( SwFmtSurround( SURROUND_NONE ) );
pNewSet->Put( SvxOpaqueItem( RES_OPAQUE, sal_True ) ); pNewSet->Put( SvxOpaqueItem( RES_OPAQUE, sal_True ) );
pNewSet->Put( SwFmtVertOrient( text::VertOrientation::TOP ) ); pNewSet->Put( SwFmtVertOrient( 0, text::VertOrientation::TOP, text::RelOrientation::FRAME ) );
pNewSet->Put( SwFmtHoriOrient( text::HoriOrientation::CENTER ) ); pNewSet->Put( SwFmtHoriOrient( 0, text::HoriOrientation::CENTER, text::RelOrientation::FRAME ) );
aFrmSize = pOldFmt->GetFrmSize(); aFrmSize = pOldFmt->GetFrmSize();
aFrmSize.SetWidthPercent( 100 ); aFrmSize.SetWidthPercent( 100 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment