[gui] fix incorrect parsing of relative <width> and <height> tags
authorJonathan Marshall <jmarshall@xbmc.org>
Mon, 28 Apr 2014 08:25:25 +0000 (20:25 +1200)
committerJonathan Marshall <jmarshall@xbmc.org>
Thu, 1 May 2014 20:12:59 +0000 (08:12 +1200)
xbmc/guilib/GUIControlFactory.cpp

index dd81c83..d23a276 100644 (file)
@@ -212,7 +212,7 @@ bool CGUIControlFactory::GetDimension(const TiXmlNode *pRootNode, const char* st
     if (!min) min = 1;
     return true;
   }
-  value = (float)atof(pNode->FirstChild()->Value());
+  value = ParsePosition(pNode->FirstChild()->Value(), parentSize);
   return true;
 }