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

Felix Paul Kühne git at videolan.org
Fri Dec 30 12:40:21 CET 2011


vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 29 20:25:33 2011 +0100| [35c707f2d2a649575e04618cec8420719ad01a1b] | committer: Jean-Baptiste Kempf

macosx: fixed indention of the sidebar icons (refs #5742)
(cherry picked from commit 65d1a6dc54734b700fbea4e8bc7c8763a025181b)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=35c707f2d2a649575e04618cec8420719ad01a1b
---

 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