aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-05-03 00:57:49 +0000
committerjmarshallnz <jmarshallnz@svn>2010-05-03 00:57:49 +0000
commitefe17bb548da38badca81401b5fc687377b86a41 (patch)
tree8a3b381f09267c809486a0bd8b86283d556d6934 /guilib
parent9cb893e3fdcd242d07bee4a5578f36df3a1a8651 (diff)
fixed: If <width> and <height> aren't set on itemlayouts, allow the mouse to still work. Note that ideally both these should be set.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29739 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r--guilib/GUIBaseContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/guilib/GUIBaseContainer.cpp b/guilib/GUIBaseContainer.cpp
index 90d19f09e3..93d2701190 100644
--- a/guilib/GUIBaseContainer.cpp
+++ b/guilib/GUIBaseContainer.cpp
@@ -966,8 +966,8 @@ void CGUIBaseContainer::FreeMemory(int keepStart, int keepEnd)
bool CGUIBaseContainer::InsideLayout(const CGUIListItemLayout *layout, const CPoint &point) const
{
if (!layout) return false;
- if ((m_orientation == VERTICAL && layout->Size(HORIZONTAL) && point.x > layout->Size(HORIZONTAL)) ||
- (m_orientation == HORIZONTAL && layout->Size(VERTICAL) && point.y > layout->Size(VERTICAL)))
+ if ((m_orientation == VERTICAL && (layout->Size(HORIZONTAL) > 1) && point.x > layout->Size(HORIZONTAL)) ||
+ (m_orientation == HORIZONTAL && (layout->Size(VERTICAL) > 1)&& point.y > layout->Size(VERTICAL)))
return false;
return true;
}