summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-01 10:35:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-01 12:09:04 +0000
commitd9262e19c942f2719bfa7de3a5059e4f6e0039c6 (patch)
tree8380b7cd97241e4fe9b5f1feae0e45132d267b07 /basegfx
parent03899e1284db150d2da78b725aba7180147123c4 (diff)
ofz: timeout loading emf with move clip record
Change-Id: Id5d60f0037873598e1447b063e66e9c29840587c Reviewed-on: https://gerrit.libreoffice.org/34740 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 'basegfx')
-rw-r--r--basegfx/source/range/b2dpolyrange.cxx12
-rw-r--r--basegfx/source/tools/b2dclipstate.cxx13
2 files changed, 25 insertions, 0 deletions
diff --git a/basegfx/source/range/b2dpolyrange.cxx b/basegfx/source/range/b2dpolyrange.cxx
index 25117cb5dbd1..3b86f4fd8c0c 100644
--- a/basegfx/source/range/b2dpolyrange.cxx
+++ b/basegfx/source/range/b2dpolyrange.cxx
@@ -87,6 +87,13 @@ namespace basegfx
return tools::solveCrossovers(maRanges,maOrient);
}
+ void transform(const basegfx::B2DHomMatrix& rTranslate)
+ {
+ maBounds.transform(rTranslate);
+ for (auto &a : maRanges)
+ a.transform(rTranslate);
+ }
+
private:
B2DRange maBounds;
std::vector<B2DRange> maRanges;
@@ -148,6 +155,11 @@ namespace basegfx
return mpImpl->overlaps(rRange);
}
+ void B2DPolyRange::transform(const basegfx::B2DHomMatrix& rTranslate)
+ {
+ mpImpl->transform(rTranslate);
+ }
+
B2DPolyPolygon B2DPolyRange::solveCrossovers() const
{
return mpImpl->solveCrossovers();
diff --git a/basegfx/source/tools/b2dclipstate.cxx b/basegfx/source/tools/b2dclipstate.cxx
index db0932494626..5ce779c94a03 100644
--- a/basegfx/source/tools/b2dclipstate.cxx
+++ b/basegfx/source/tools/b2dclipstate.cxx
@@ -173,6 +173,13 @@ namespace tools
addPolyPolygon(rPolyPoly,XOR);
}
+ void transform(const basegfx::B2DHomMatrix& rTranslate)
+ {
+ maPendingRanges.transform(rTranslate);
+ maPendingPolygons.transform(rTranslate);
+ maClipPoly.transform(rTranslate);
+ }
+
B2DPolyPolygon const & getClipPoly() const
{
commitPendingRanges();
@@ -481,6 +488,12 @@ namespace tools
return mpImpl->getClipPoly();
}
+ void B2DClipState::transform(const basegfx::B2DHomMatrix& rTranslate)
+ {
+ return mpImpl->transform(rTranslate);
+ }
+
+
} // end of namespace tools
} // end of namespace basegfx