f-spot r4609 - in trunk: . src/Widgets
- From: lmilesi svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4609 - in trunk: . src/Widgets
- Date: Sat, 22 Nov 2008 10:15:34 +0000 (UTC)
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]