diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-05-12 18:28:51 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-05-12 19:16:38 +0200 |
commit | 92a2445fcbdca5e1792b3579525ff40426700154 (patch) | |
tree | 03bd6a64c4348f4ccea03e7e18bfacbebeb1c806 | |
parent | 8875c2e06ffd055f5e4637a71761457b1131a1c3 (diff) |
sw: fix another wrong call of SwTxtPortion copy-ctor
Not sure what it should do, but given the parameter is SwLineLayout
it will set POR_LAY on a SwTxtPortion which is wrong.
Change-Id: I4296bcdf9e788338eb007ad09eae675a9fdc6a75
-rw-r--r-- | sw/source/core/text/pormulti.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx index 2bb8217403fa..6b24834646be 100644 --- a/sw/source/core/text/pormulti.cxx +++ b/sw/source/core/text/pormulti.cxx @@ -678,7 +678,7 @@ void SwRubyPortion::_Adjust( SwTxtFormatInfo &rInf ) if( nLeft || nRight ) { if( !pCurr->GetPortion() ) - pCurr->SetPortion( new SwTxtPortion( *pCurr ) ); + pCurr->SetPortion(new SwTxtPortion(*static_cast<SwLinePortion*>(pCurr))); if( nLeft ) { SwMarginPortion *pMarg = new SwMarginPortion( 0 ); |