dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ChangeLog System.Drawing/Drawing2D/Matr...


From: Heiko Weiss
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog System.Drawing/Drawing2D/Matr...
Date: Mon, 25 Sep 2006 08:44:08 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Changes by:     Heiko Weiss <brubbel>   06/09/25 08:44:08

Modified files:
        .              : ChangeLog 
        System.Drawing/Drawing2D: Matrix.cs 

Log message:
        fixed TransformFontSize not to return negative numbers.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2437&r2=1.2438
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Drawing/Drawing2D/Matrix.cs?cvsroot=dotgnu-pnet&r1=1.12&r2=1.13

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2437
retrieving revision 1.2438
diff -u -b -r1.2437 -r1.2438
--- ChangeLog   25 Sep 2006 08:26:03 -0000      1.2437
+++ ChangeLog   25 Sep 2006 08:44:08 -0000      1.2438
@@ -2,6 +2,7 @@
 
        * System.Drawing/Graphics.cs: allow rotation of arcs and ellipses
        by drawing and filling them with graphics path.
+       * System.Drawing/Drawing2D/Matrix.cs: fixed TransformFontSize.
 
 2006-09-25  Gopal V  <address@hidden>
 

Index: System.Drawing/Drawing2D/Matrix.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Drawing/Drawing2D/Matrix.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- System.Drawing/Drawing2D/Matrix.cs  5 Jun 2006 11:58:18 -0000       1.12
+++ System.Drawing/Drawing2D/Matrix.cs  25 Sep 2006 08:44:08 -0000      1.13
@@ -604,7 +604,7 @@
        // this does only work for scaling, not for rotation or multiply 
transformations
        // Normally we should stretch or shrink the font.
        internal float TransformFontSize( float fIn ) {
-               return Math.Min( this.m11, this.m22 ) * fIn;
+               return Math.Abs(Math.Min( this.m11, this.m22 ) * fIn);
        }
 }; // class Matrix
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]