Author: hanya
Date: Wed Jan 8 12:38:09 2014
New Revision: 1556515
URL: http://svn.apache.org/r1556515
Log:
#i51453# avoid relative sizing for the picture and formula wrapped by inserted
frame when caption is added
Modified:
openoffice/trunk/main/sw/source/core/doc/doclay.cxx
Modified: openoffice/trunk/main/sw/source/core/doc/doclay.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/core/doc/doclay.cxx?rev=1556515&r1=1556514&r2=1556515&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/core/doc/doclay.cxx (original)
+++ openoffice/trunk/main/sw/source/core/doc/doclay.cxx Wed Jan 8 12:38:09 2014
@@ -1422,7 +1422,7 @@ lcl_InsertLabel(SwDoc & rDoc, SwTxtFmtCo
pNewSet->Put( SwFmtHoriOrient( 0,
text::HoriOrientation::CENTER, text::RelOrientation::FRAME ) );
aFrmSize = pOldFmt->GetFrmSize();
- aFrmSize.SetWidthPercent( 100 );
+ aFrmSize.SetWidthPercent( 0 );
aFrmSize.SetHeightPercent( 255 );
pNewSet->Put( aFrmSize );