crashtesting: divide by zero
since...
commit f3d6c44c9c
Date: Mon Sep 3 11:05:44 2018 -0400
tdf#108064 OOXML export: keep preset dashes with any line width
Change-Id: I948123977f48d1f1005788f6a2c117e8971cab6f
Reviewed-on: https://gerrit.libreoffice.org/60423
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -701,9 +701,9 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet )
|
||||
if( bDashSet && aStyleLineStyle != drawing::LineStyle_DASH )
|
||||
{
|
||||
// convert absolute dash/dot length to relative length
|
||||
int relDotLen = aLineDash.DotLen / nLineWidth;
|
||||
int relDashLen = aLineDash.DashLen / nLineWidth;
|
||||
int relDistance = aLineDash.Distance / nLineWidth;
|
||||
int relDotLen = nLineWidth ? aLineDash.DotLen / nLineWidth : -1;
|
||||
int relDashLen = nLineWidth ? aLineDash.DashLen / nLineWidth : -1;
|
||||
int relDistance = nLineWidth ? aLineDash.Distance / nLineWidth : -1;
|
||||
// keep default mso preset linestyles (instead of custdash)
|
||||
if (aLineDash.Dots == 1 && relDotLen == 1 && aLineDash.Dashes == 0 && relDashLen == 0 && relDistance == 3)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user