summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-12 18:28:51 +0200
committerMichael Stahl <mstahl@redhat.com>2015-05-12 19:16:38 +0200
commit92a2445fcbdca5e1792b3579525ff40426700154 (patch)
tree03bd6a64c4348f4ccea03e7e18bfacbebeb1c806
parent8875c2e06ffd055f5e4637a71761457b1131a1c3 (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.cxx2
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 );