summaryrefslogtreecommitdiff
path: root/Plugins/skins/SkinLib/FontState_v8_wrapper.cpp
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-01-24 05:38:13 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-01-24 05:38:13 +0000
commitde4ef8a65afd0c38f8bbdfcb3b90ff82a98d1483 (patch)
treefeefeaeb3734eaebdb5872609606edc84d6f8fa3 /Plugins/skins/SkinLib/FontState_v8_wrapper.cpp
parentbe94a568ef65120465b49f5c6db90cd4ec3c3eb2 (diff)
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
Diffstat (limited to 'Plugins/skins/SkinLib/FontState_v8_wrapper.cpp')
-rw-r--r--Plugins/skins/SkinLib/FontState_v8_wrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/skins/SkinLib/FontState_v8_wrapper.cpp b/Plugins/skins/SkinLib/FontState_v8_wrapper.cpp
index 4a81dd0..5226736 100644
--- a/Plugins/skins/SkinLib/FontState_v8_wrapper.cpp
+++ b/Plugins/skins/SkinLib/FontState_v8_wrapper.cpp
@@ -80,7 +80,7 @@ static void Set_FontState_size(Local<String> property, Local<Value> value, const
if (tmp == NULL)
return;
- if (!value.IsEmpty() && value->IsInt32())
+ if (!value.IsEmpty() && value->IsNumber())
tmp->setSize(value->Int32Value());
}
@@ -250,7 +250,7 @@ static void Set_FontState_color(Local<String> property, Local<Value> value, cons
if (tmp == NULL)
return;
- if (!value.IsEmpty() && value->IsInt32())
+ if (!value.IsEmpty() && value->IsNumber())
tmp->setColor(value->Int32Value());
}