f-spot r4609 - in trunk: . src/Widgets



Author: lmilesi
Date: Sat Nov 22 10:15:34 2008
New Revision: 4609
URL: http://svn.gnome.org/viewvc/f-spot?rev=4609&view=rev

Log:
2008-11-22  Lorenzo Milesi  <maxxer yetopen it>

	* src/Widget/CustomPrintWidget.cs: round paper size values. fix bgo#561526


Modified:
   trunk/ChangeLog
   trunk/src/Widgets/CustomPrintWidget.cs

Modified: trunk/src/Widgets/CustomPrintWidget.cs
==============================================================================
--- trunk/src/Widgets/CustomPrintWidget.cs	(original)
+++ trunk/src/Widgets/CustomPrintWidget.cs	Sat Nov 22 10:15:34 2008
@@ -99,7 +99,9 @@
 			VBox vb = new VBox ();
 			Label current_settings = new Label ();
 			if (FSpot.Global.PageSetup != null)
-				current_settings.Text = String.Format (Catalog.GetString ("Paper Size: {0} x {1} mm"), print_operation.DefaultPageSetup.GetPaperWidth (Unit.Mm), print_operation.DefaultPageSetup.GetPaperHeight (Unit.Mm));
+				current_settings.Text = String.Format (Catalog.GetString ("Paper Size: {0} x {1} mm"), 
+								Math.Round (print_operation.DefaultPageSetup.GetPaperWidth (Unit.Mm), 1), 
+								Math.Round (print_operation.DefaultPageSetup.GetPaperHeight (Unit.Mm), 1));
 			else
 				current_settings.Text = String.Format (Catalog.GetString ("Paper Size: {0} x {1} mm"), "...", "...");
 



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