https://bugs.documentfoundation.org/show_bug.cgi?id=159462
--- Comment #5 from Justin L <[email protected]> --- I think in the ideal case that ALL inside placements should also try to bestFit the text content into the slice, regardless of what MSO does. (I mean, how bad could it be if we DO NOT spill out of the slice - just less aesthetic hyphen-splits in specific contexts?) IIUC, our current bestFit algorithm simply tries to find the best POSITION for the text: center or edge basically. In order to do that, it does some brilliant calculations, which I would HOPE could be fairly easily adapted to compare to the area of the current text bounding box. // get label b.b. width and height basegfx::B2IRectangle aBb( lcl_getRect( rPieLabelInfo.xLabelGroupShape ) ); If the guessed best width doesn't fit, [but the area fits into the slices' available text area,] then reduce the maximum width to this width and check if the new height is OK. [Area isn't a great predictive test though, since almost half of it could be empty space.] rPieLabelInfo.xTextShape->SvxShape::setPropertyValue("TextMaximumFrameWidth", nMaxBestFitWidth); That is an expensive task, so don't want to do that flippantly. However, the only way to actually know if it fits is to force the text to re-layout with a new width. -- You are receiving this mail because: You are the assignee for the bug.
