[Libreoffice-commits] .: Branch 'libreoffice-3-6' - writerfilter/source

Petr Mladek pmladek at kemper.freedesktop.org
Tue Aug 14 07:07:03 PDT 2012


 writerfilter/source/rtftok/rtfdocumentimpl.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 1067832bbfae15811ff2e1d478139b5af283de51
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Mon Aug 13 12:23:05 2012 +0200

    fdo#47495 fix RTF import of multiple shapes inside textframes
    
    (cherry-picked from commit ad72a47dbd16f65316432df71dffe3b9b835fcc7)
    
    Change-Id: Iee8541ff9e88139648d45f08968476f2b1d4e1b3
    
    Signed-off-by: Petr Mladek <pmladek at suse.cz>

diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 1355501..aa58eaa 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -3411,7 +3411,8 @@ int RTFDocumentImpl::popState()
         bFaltEnd = true;
     }
     else if (m_aStates.top().nDestinationState == DESTINATION_FLYMAINCONTENT
-            || m_aStates.top().nDestinationState == DESTINATION_SHPPICT)
+            || m_aStates.top().nDestinationState == DESTINATION_SHPPICT
+            || aState.nDestinationState == DESTINATION_SHAPE)
         bPopFrame = true;
     else if (m_aStates.top().nDestinationState == DESTINATION_DRAWINGOBJECT && m_aStates.top().aDrawingObject.xShape.is())
     {
@@ -3436,6 +3437,8 @@ int RTFDocumentImpl::popState()
     {
         m_aStates.top().resetFrame();
         parBreak();
+        // Save this state for later use, so we only reset frame status only for the first shape inside a frame.
+        aState = m_aStates.top();
         m_bNeedPap = true;
     }
 


More information about the Libreoffice-commits mailing list