Permalink
Browse files

Fix line rounding error

  • Loading branch information...
1 parent 74a93e9 commit 4725980f96b39e99c90755065475e5b5e824c5ce @tomasr committed Oct 20, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 LineHighlight.cs
View
@@ -111,6 +111,8 @@ public class LineHighlight {
drawingImage.Freeze();
Image image = new Image();
+ // work around WPF rounding bug
+ image.UseLayoutRounding = false;
image.Source = drawingImage;
//Align the image with the top of the bounds of the text geometry
Canvas.SetLeft(image, g.Bounds.Left);

0 comments on commit 4725980

Please sign in to comment.