Skip to content

Commit ecac221

Browse files
committed
bug fix, rotation text with scaled sheet
1 parent d74ded3 commit ecac221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReoGrid/WPF/Renderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ public void DrawCellText(Cell cell, SolidColor textColor, DrawMode drawMode, dou
580580
{
581581
System.Windows.Media.Matrix m = System.Windows.Media.Matrix.Identity;
582582
m.Rotate(cell.InnerStyle.RotationAngle);
583-
m.Translate(cell.Bounds.OriginX, cell.Bounds.OriginY);
583+
m.Translate(cell.Bounds.OriginX * sheet.ScaleFactor, cell.Bounds.OriginY * sheet.ScaleFactor);
584584

585585
this.PushTransform(m);
586586
this.PlatformGraphics.DrawText(cell.formattedText, new WPFPoint(-cell.formattedText.Width * 0.5, -cell.formattedText.Height * 0.5));

0 commit comments

Comments
 (0)