Skip to content

Commit b57b7bb

Browse files
authored
Merge pull request dotnet#1761 from Simon-IT/master
Hit testing by geometry fails if more than one matrix trasformation is applied to a geometry.
2 parents 17b779f + 8b07b43 commit b57b7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestWithGeometryDrawingContextWalker.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public override void PushTransform(
276276
else if ((_currentTransform != null) && !_currentTransform.IsIdentity)
277277
{
278278
// Both the current transform and the new one are nontrivial, combine them
279-
Matrix combined = _currentTransform.Value * transform.Value;
279+
Matrix combined = transform.Value * _currentTransform.Value;
280280
transform = new MatrixTransform(combined);
281281
}
282282

0 commit comments

Comments
 (0)