https://issues.apache.org/ooo/show_bug.cgi?id=115391
--- Comment #8 from Armin Le Grand <[email protected]> --- ALG: This is hard (old) stuff; the bool bTextFrame which is used to decide if e.g. NbcResize will update AutoGrowWidth/Height is used as a flag for the 'resize shape to fit text' setting; when this is set, bTextFrame is used at SdrTextObj (the class CustomShape is derived from) to change the behaviour to be close to a TextFrame. Also the Item used to remember that state is SdrTextAutoGrowHeightItem; this is *reused* compared to SdrTextObj where it does what the name says, see comment in svdoashp.hxx line 2556: // in context with the SdrObjCustomShape the SdrTextAutoGrowHeightItem == true -> Resize Shape to fit text, // the SdrTextAutoGrowWidthItem == true -> Word wrap text in Shape Ahhh(!). Also MinTextFrameWidth/Height for CustomShape relies on the text frame specific to the CustomShape (is fetched using GetTextBounds), not on the internal rect of the TextObject, thus all changes in the 'resize shape to fit text' mode wrongly resetted MinFrameTextWidth/Height to wrong values anyways. Experimenting now with different local virtual methods for adapting MinFrameTextWidth/Height for Text and CustomShapes... -- You are receiving this mail because: You are on the CC list for the bug. You are watching all bug changes.
