[Libreoffice-commits] .: svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 7 06:01:25 PST 2013


 svx/source/table/tablemodel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aaaa5350075ad5f589c242ec40f9f6ab7fe822a5
Author: K_Karthikeyan <karthikeyan at kacst.edu.sa>
Date:   Mon Jan 7 13:56:08 2013 +0300

    Bugfix for improper function call, column count was compared with row count
    
    Change-Id: Iacf59548209d2be8b36839ae12bed9cedb7bdded
    Reviewed-on: https://gerrit.libreoffice.org/1562
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx
index 5387babf..59358e3 100644
--- a/svx/source/table/tablemodel.cxx
+++ b/svx/source/table/tablemodel.cxx
@@ -1116,7 +1116,7 @@ void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_
     const sal_Int32 nLastRow = nRow + nRowSpan;
     const sal_Int32 nLastCol = nCol + nColSpan;
 
-    if( (nLastRow > getRowCount()) || (nLastCol > getRowCount() ) )
+    if( (nLastRow > getRowCount()) || (nLastCol > getColumnCount() ) )
     {
         OSL_FAIL("TableModel::merge(), merge beyound the table!");
     }


More information about the Libreoffice-commits mailing list