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

#119952# - method <lcl_CalcAutoWidth(..)> - do not provide width of text frame…

#119952# - method <lcl_CalcAutoWidth(..)> - do not provide width of text frame inclusive margins, if text frame is in its formatting.

Found by: Yan Ji
Patch by: qiuhuaidong at gmail dot com
Review by: Oliver-Rainer Wittmann
üst 5a4ae152
......@@ -2691,7 +2691,8 @@ SwTwips lcl_CalcAutoWidth( const SwLayoutFrm& rFrm )
nMin = ((SwTxtFrm*)pFrm)->CalcFitToContent();
const SvxLRSpaceItem &rSpace =
((SwTxtFrm*)pFrm)->GetTxtNode()->GetSwAttrSet().GetLRSpace();
nMin += rSpace.GetRight() + rSpace.GetTxtLeft() + rSpace.GetTxtFirstLineOfst();
if (!((SwTxtFrm*)pFrm)->IsLocked())
nMin += rSpace.GetRight() + rSpace.GetTxtLeft() + rSpace.GetTxtFirstLineOfst();
}
else if ( pFrm->IsTabFrm() )
{
......
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