oox/source/drawingml/shape.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit b6f35687e4d53c67fd5d104fd99f92c6d11bf815 Author: Muthu Subramanian <sumu...@suse.com> Date: Thu Aug 15 17:41:26 2013 +0530 n#831457: Placeholders text size is not correct. Placeholders (or shapes without text imported from the files) have wrong font size. This is because the size (and probably other text attributes) aren't applied from the mastertextlist to the shape itself. diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index dc2a7db..2e460d3 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -535,6 +535,9 @@ Reference< XShape > Shape::createAndInsert( { mpTextBody->getTextProperties().pushRotationAdjustments( mnRotation ); aShapeProps.assignUsed( mpTextBody->getTextProperties().maPropertyMap ); + // Push char properties as well - specifically useful when this is a placeholder + if( mpMasterTextListStyle && mpMasterTextListStyle->getListStyle()[0]->getTextCharacterProperties().moHeight.has() ) + aShapeProps[ PROP_CharHeight ] <<= GetFontHeight( mpMasterTextListStyle->getListStyle()[0]->getTextCharacterProperties().moHeight.get() ); } // applying properties _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits