summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-13 15:54:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-13 16:44:44 +0000
commit1d46d83b2d95c8f32b5d350bc99cdc3bafd7f7dd (patch)
tree4eb04960651695b047a01f0592c527ce8c7efe9e /vcl
parent849c82495e838afb09c3c0d63fa506a7f3e2a82c (diff)
ofz#846 timeout in wmf, can defer clip region if we don't do anything
Change-Id: I8711bb5c676194d9b34df2584a31851dfcc901e6 Reviewed-on: https://gerrit.libreoffice.org/35143 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index 5aae3616d2a7..55d50025c93e 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -1342,11 +1342,11 @@ void WinMtfOutput::DrawPolyLine( tools::Polygon& rPolygon, bool bTo, bool bRecor
void WinMtfOutput::DrawPolyBezier( tools::Polygon& rPolygon, bool bTo, bool bRecordPath )
{
- UpdateClipRegion();
-
sal_uInt16 nPoints = rPolygon.GetSize();
if ( ( nPoints >= 4 ) && ( ( ( nPoints - 4 ) % 3 ) == 0 ) )
{
+ UpdateClipRegion();
+
ImplMap( rPolygon );
if ( bTo )
{