From de4ef8a65afd0c38f8bbdfcb3b90ff82a98d1483 Mon Sep 17 00:00:00 2001 From: pescuma Date: Sat, 24 Jan 2009 05:38:13 +0000 Subject: skins: fix for floats and added valign (not used yet) git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@133 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/skins/SkinLib/SkinOption_v8_wrapper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Plugins/skins/SkinLib/SkinOption_v8_wrapper.cpp') diff --git a/Plugins/skins/SkinLib/SkinOption_v8_wrapper.cpp b/Plugins/skins/SkinLib/SkinOption_v8_wrapper.cpp index 944bb6e..11a401a 100644 --- a/Plugins/skins/SkinLib/SkinOption_v8_wrapper.cpp +++ b/Plugins/skins/SkinLib/SkinOption_v8_wrapper.cpp @@ -80,7 +80,7 @@ static void Set_SkinOption_min(Local property, Local value, const if (tmp == NULL) return; - if (!value.IsEmpty() && value->IsInt32()) + if (!value.IsEmpty() && value->IsNumber()) tmp->setMin(value->Int32Value()); } @@ -114,7 +114,7 @@ static void Set_SkinOption_max(Local property, Local value, const if (tmp == NULL) return; - if (!value.IsEmpty() && value->IsInt32()) + if (!value.IsEmpty() && value->IsNumber()) tmp->setMax(value->Int32Value()); } @@ -158,11 +158,11 @@ static void Set_SkinOption_type(Local property, Local value, cons { String::Utf8Value utf8_value(value); Utf8ToTchar tval(*utf8_value); - if ( lstrcmpi(_T("CHECKBOX"), tval) == 0) + if ( lstrcmpi(_T("CHECKBOX"), tval) == 0 ) tmp->setType(CHECKBOX); - else if ( lstrcmpi(_T("NUMBER"), tval) == 0) + else if ( lstrcmpi(_T("NUMBER"), tval) == 0 ) tmp->setType(NUMBER); - else if ( lstrcmpi(_T("TEXT"), tval) == 0) + else if ( lstrcmpi(_T("TEXT"), tval) == 0 ) tmp->setType(TEXT); } } -- cgit v1.2.3