summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 4001639d3c85..599b1acf3dd7 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -1560,7 +1560,10 @@ sal_Int32 SwWW8ImplReader::MatchSdrBoxIntoFlyBoxItem(const Color& rLineColor,
aLine.SetBorderLineStyle(nIdx);
for(sal_uInt16 nLine = 0; nLine < 4; ++nLine)
- rBox.SetLine(new SvxBorderLine( aLine ), nLine);
+ {
+ //aLine is cloned by SetLine
+ rBox.SetLine(&aLine, nLine);
+ }
}
return nOutsideThick;