4f7fc2a
From fc23cec13e5e17fb6d0f2d650b8889041af2da68 Mon Sep 17 00:00:00 2001
4f7fc2a
From: David Tardon <dtardon@redhat.com>
4f7fc2a
Date: Sat, 18 Jun 2011 16:54:43 +0200
4f7fc2a
Subject: [PATCH] rhbz#667082 do not crash importing section containing just
4f7fc2a
 an empty paragraph
4f7fc2a
4f7fc2a
---
4f7fc2a
 writerfilter/source/dmapper/DomainMapper_Impl.cxx |    8 +-------
4f7fc2a
 1 files changed, 1 insertions(+), 7 deletions(-)
4f7fc2a
4f7fc2a
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
4f7fc2a
index 759f8e7..9944c8c 100644
4f7fc2a
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
4f7fc2a
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
4f7fc2a
@@ -937,13 +937,7 @@ void DomainMapper_Impl::finishParagraph( PropertyMapPtr pPropertyMap )
4f7fc2a
                 uno::Reference< text::XTextRange > xParaEnd( xCur, uno::UNO_QUERY );
4f7fc2a
                 CheckParaRedline( xParaEnd );
4f7fc2a
 
4f7fc2a
-                // Remove the last empty section paragraph if needed
4f7fc2a
-                if ( m_bIsLastParaInSection && !m_bParaChanged )
4f7fc2a
-                {
4f7fc2a
-                    RemoveLastParagraph( );
4f7fc2a
-                    m_bIsLastParaInSection = false;
4f7fc2a
-                }
4f7fc2a
-
4f7fc2a
+                m_bIsLastParaInSection = false;
4f7fc2a
                 m_bParaChanged = false;
4f7fc2a
             }
4f7fc2a
             if( !bKeepLastParagraphProperties )
4f7fc2a
-- 
4f7fc2a
1.7.5.2
4f7fc2a