[gui] fix incorrect parsing of relative <width> and <height> tags
[vuplus_xbmc] / 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;
 }