Length CSSPrimitiveValue::convertToLength(const CSSToLengthConversionData& conversionData)
{
    if (isLength())
        return computeLength<Length>(conversionData);
    if (isPercentage())
        return Length(getDoubleValue(), Percent);
    ASSERT(isCalculated());
    return Length(cssCalcValue()->toCalcValue(conversionData));
}
void CMFCApplication1Dlg::new_word() { //provjera na koliko je bodova igraè i po tome se odreðuje velièina rijeèi koje æe upisivati
	std::vector<std::string>::iterator it;


	random_shuffle(list_words.begin(), list_words.end()); 
	it = find_if(list_words.begin(), list_words.end(), isLength(score));
	std::string t = *it; 
	current_word = t.c_str();

	change_text(); //izmjena text-a za upis
	timer(); //reset timer-a

}