Просмотр исходного кода

2006-08-25 Sebastien Pouliot <[email protected]>

	* PrivateFontCollection.cs: Fix warning by reusing the full path.


svn path=/trunk/mcs/; revision=64354
Sebastien Pouliot 19 лет назад
Родитель
Сommit
1c18cdbaba

+ 4 - 0
mcs/class/System.Drawing/System.Drawing.Text/ChangeLog

@@ -1,3 +1,7 @@
+2006-08-25  Sebastien Pouliot  <[email protected]>
+
+	* PrivateFontCollection.cs: Fix warning by reusing the full path.
+
 2006-08-07  Andrew Skiba <[email protected]>
 
 	* LineLayout.jvm.cs: TARGET_JVM fix

+ 2 - 2
mcs/class/System.Drawing/System.Drawing.Text/PrivateFontCollection.cs

@@ -57,11 +57,11 @@ namespace System.Drawing.Text {
 			// this ensure the filename is valid (or throw the correct exception)
 			string fname = Path.GetFullPath (filename);
 
-			if (!File.Exists(filename))
+			if (!File.Exists (fname))
 				throw new FileNotFoundException ();
 
 			// note: MS throw the same exception FileNotFoundException if the file exists but isn't a valid font file
-			Status status = GDIPlus.GdipPrivateAddFontFile (nativeFontCollection, filename);
+			Status status = GDIPlus.GdipPrivateAddFontFile (nativeFontCollection, fname);
 			GDIPlus.CheckStatus (status);			
 		}