summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 );