[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Sat Dec 12 12:43:49 PST 2015
lotuswordpro/source/filter/lwptablelayout.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 363af22d7a455381fa21bc04037c646052df077c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Dec 12 20:37:27 2015 +0000
coverity#1341875 Division or modulo by float zero
Change-Id: I3a07361bb66a62533475618c9b50f184d791a799
(cherry picked from commit 18952ac1de81b522f5fef36ff922c4a0dc29499d)
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index e73bbcd..439ff50 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -611,7 +611,7 @@ void LwpTableLayout::RegisterColumns()
}
// justifiable columns will share the remain width averagely
- dDefaultColumn = dTableWidth/nJustifiableColumn;
+ dDefaultColumn = nJustifiableColumn ? dTableWidth/nJustifiableColumn : 0;
// register default column style
XFColStyle *pColStyle = new XFColStyle();
More information about the Libreoffice-commits
mailing list