[tomboy] Fix indentation problems with bullet lists (LP#516494)



commit 4f1b2828f05eaf5f2ba43d7a8860cf1277b1fd6a
Author: Owen Williams <owen-launchpad ywwg com>
Date:   Fri Mar 12 21:40:30 2010 -0500

    Fix indentation problems with bullet lists (LP#516494)

 Tomboy/Addins/PrintNotes/PrintNotes.addin.xml   |    2 +-
 Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml b/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml
index a699592..1d12b15 100644
--- a/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml
+++ b/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml
@@ -5,7 +5,7 @@
 	description="Allows you to print a note."
 	category="Desktop Integration"
 	defaultEnabled="true"
-	version="0.2">
+	version="0.2.1">
 
 	<Runtime>
 		<Import assembly="PrintNotes.dll" />
diff --git a/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs b/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs
index 160288a..d1ac1ed 100644
--- a/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs
+++ b/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs
@@ -200,6 +200,10 @@ namespace Tomboy.PrintNotes
 				layout.Attributes = attr_list;
 			}
 
+			DepthNoteTag depth = Buffer.FindDepthTag (p_start);
+			if (depth != null)
+				indentation += ((int) (dpiX / 3)) * depth.Depth;
+
 			layout.Width = Pango.Units.FromPixels ((int)context.Width -
 				margin_left - margin_right - indentation);
 			layout.Wrap = Pango.WrapMode.WordChar;



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