[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Fri Mar 28 12:27:13 PDT 2014


 sw/source/filter/ww8/ww8par6.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 42c428b9fd84490cb4bbd25fedc3034755bf3fe3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 28 19:26:24 2014 +0000

    clip to max
    
    Change-Id: Ibc25262fc0e350ce2d676940f0ec7f2fb368128f

diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index 73d2f24..a51526d 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -889,8 +889,8 @@ void wwSectionManager::CreateSep(const long nTxtPos, bool /*bMustHaveBreak*/)
     aNewSection.maSep.ccolM1 = ReadSprm(pSep, pIds[3], 0 );
     if ( aNewSection.maSep.ccolM1 >= MAX_NO_OF_SEP_COLUMNS )
     {
-        // fallback to one column
-        aNewSection.maSep.ccolM1 = 0;
+        // clip to max
+        aNewSection.maSep.ccolM1 = MAX_NO_OF_SEP_COLUMNS-1;
     }
 
     //sprmSDxaColumns   - Default-Abstand 1.25 cm


More information about the Libreoffice-commits mailing list