[Libreoffice-commits] .: Branch 'feature/calc-multiline-input' - sw/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Aug 15 15:09:04 PDT 2011


 sw/source/ui/vba/vbarows.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 0afb877d105a35b8c2c17ef819d26f4a6ab3d2d1
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Mon Aug 15 18:09:14 2011 -0400

    Hmm, I didn't mean to check this one in either.

diff --git a/sw/source/ui/vba/vbarows.cxx b/sw/source/ui/vba/vbarows.cxx
index 7b1f939..01c8dfd 100644
--- a/sw/source/ui/vba/vbarows.cxx
+++ b/sw/source/ui/vba/vbarows.cxx
@@ -263,6 +263,10 @@ void SwVbaRows::setIndentWithAdjustNone( sal_Int32 indent ) throw (uno::RuntimeE
     sal_Int32 nWidth = 0;
     xTableProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Width") ) ) >>= nWidth;
     sal_Int32 nNewWidth = nWidth - indent;
+    if ((nNewWidth <= 0) || (nWidth <= 0))
+    {
+        throw new RuntimeException("Pb with width, in SwVbaRows::setIndentWithAdjustProportional (nNewWidth <= 0) || (nWidth <= 0)");
+    }
     double propFactor = (double)nNewWidth/(double)nWidth;
 
     // get all columns, calculate and set the new width of the columns


More information about the Libreoffice-commits mailing list