diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-11 15:18:26 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-11 16:14:16 +0200 |
commit | 4e653d15eff26aa5283d8ba20611893f4c573f57 (patch) | |
tree | edb4a54114aed8579e73c347ecadb2e22df98fa0 /writerfilter | |
parent | 066e0fe1a230eac2531a53e1ec5fa58347e9e31e (diff) |
DOCX import: fix default section break type inside multiple columns
Change-Id: I7c44a2bdb69563953d3257b435aeed5bae50f7b2
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/PropertyMap.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx index c3a6523d711c..86382bbf7fb2 100644 --- a/writerfilter/source/dmapper/PropertyMap.cxx +++ b/writerfilter/source/dmapper/PropertyMap.cxx @@ -907,7 +907,9 @@ void SectionPropertyMap::CloseSectionGroup( DomainMapper_Impl& rDM_Impl ) } //depending on the break type no page styles should be created - if(m_nBreakType == 0) + // If the section type is missing, but we have columns, then this should be + // handled as a continuous section break. + if(m_nBreakType == 0 || (m_nBreakType == -1 && m_nColumnCount > 0)) { //todo: insert a section or access the already inserted section uno::Reference< beans::XPropertySet > xSection = |