[vlc-commits] macosx: fixed indention of the sidebar icons (refs #5742)

Felix Paul Kühne git at videolan.org
Thu Dec 29 22:01:43 CET 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 29 20:25:33 2011 +0100| [65d1a6dc54734b700fbea4e8bc7c8763a025181b] | committer: Felix Paul Kühne

macosx: fixed indention of the sidebar icons (refs #5742)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65d1a6dc54734b700fbea4e8bc7c8763a025181b
---

 modules/gui/macosx/PXSourceList.m |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/PXSourceList.m b/modules/gui/macosx/PXSourceList.m
index d5c873f..20a591a 100644
--- a/modules/gui/macosx/PXSourceList.m
+++ b/modules/gui/macosx/PXSourceList.m
@@ -336,8 +336,8 @@ NSString * const PXSLDeleteKeyPressedOnRowsNotification = @"PXSourceListDeleteKe
 	}
 	else
 	{
-		CGFloat leftIndent = [self levelForRow:row]*[self indentationPerLevel]+DISCLOSURE_TRIANGLE_SPACE;
-		
+		CGFloat leftIndent = ([self levelForRow:row] -1)*[self indentationPerLevel]+DISCLOSURE_TRIANGLE_SPACE;
+
 		//Calculate space left for a badge if need be
 		CGFloat rightIndent = [self sizeOfBadgeAtRow:row].width+ROW_RIGHT_MARGIN;
 		



More information about the vlc-commits mailing list