[Libreoffice-commits] .: Branch 'libreoffice-3-5' - writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Fri Apr 6 06:38:10 PDT 2012
writerfilter/source/dmapper/DomainMapper_Impl.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 2ff3c94c471ee586c733121e528e9623c4344224
Author: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
Date: Tue Dec 20 16:27:46 2011 +0100
fdo#47036 n#703032 RTF/DOCX import: fixed the import of consecutive frames
When we have two consecutive paragraphs with different frame properties,
the second frame wasn't created. Now store the current paragraph
properties in order to create the frame later.
(cherry picked from commit e040d2931658b411bfbd1c668dc96422374a74be)
Signed-off-by: Miklos Vajna <vmiklos at suse.cz>
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index bc38966..5461a99 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1010,6 +1010,13 @@ void DomainMapper_Impl::finishParagraph( PropertyMapPtr pPropertyMap )
{
//handles (8)(9) and completes (6)
CheckUnregisteredFrameConversion( );
+
+ // If different frame properties are set on this paragraph, keep them.
+ if ( !bIsDropCap && pParaContext->IsFrameMode() )
+ {
+ pToBeSavedProperties.reset( new ParagraphProperties(*pParaContext) );
+ lcl_AddRangeAndStyle(pToBeSavedProperties, xTextAppend, pPropertyMap);
+ }
}
}
More information about the Libreoffice-commits
mailing list